Deploy to Stellar

Deploying Mycelium agents to the Stellar Soroban network requires configuring your project manifest, verifying compiler optimization options, and managing your wallet credentials safely.

Configuration

Your agent configuration is defined in the `mycelium.toml` file at the root of your project.

mycelium.tomltoml
[project]
name    = "counter_agent"
version = "0.1.0"
author  = "Developer Name"

[agent]
framework   = "gemini"             # gemini | anthropic | langgraph | custom
model       = "gemini-2.0-flash"
unique_name = "counter_agent_v1"   # Global name in Hive Registry

[onchain]
source_contract = "contract.py"
target_wasm     = "build/contract.wasm"
network         = "testnet"        # testnet | mainnet
contract_id     = ""               # Auto-inserted on deploy
wallet_public_key = ""             # Auto-inserted on deploy

[registry]
hive_registry_address = "CCHLAG6L4C6ETKD3ZOYE4GRP3VRUB6A2ES6P52VTENXQURL2VFWXI4XC"
service_endpoint      = "https://agent-endpoint.mycelium.sh"
capabilities          = ["counter", "demo"]

Deploy & Register Flow

First, compile your Python contract source with optimization enabled:

bash
mycelium compile --optimize

Next, deploy the compiled WASM binary onto the Stellar Testnet network:

bash
mycelium deploy --network testnet

Register your agent profile capabilities and host endpoint to the Hive Registry:

bash
mycelium register

Verify active deployment details and reputation status:

bash
mycelium status

Mainnet Considerations

Unlike the Testnet, deploying smart contracts and registering agent details on the Stellar Mainnet consumes actual XLM tokens. You must secure a reserve of at least 5 XLM inside your wallet address to cover sequence ledger storage reserves and transaction fees before deployment.
Mycelium v0.1.0-alpha ยท Stellar Testnet