Quick Start
Get started with Mycelium in under five minutes. This guide walks you through installing the CLI/SDK, initializing a project workspace, generating a wallet keypair, compiling a contract to WebAssembly, and registering an agent on the Stellar Testnet.
1 — Install the Toolchain
Install the core package using `pip`. This installs the CLI, SDK components, the Python-to-WASM transpiler, and local simulator modules:
Mycelium is split into individual packages on PyPI to allow modular installation if you only require specific parts of the framework. You can install the complete stack or target specific layers directly:
The parent wrapper package bundling the full toolchain (DSL, SDK, CLI, compiler).
pip install mycelium-stellarThe autonomous agent runtime core, providing wallet encryption, RPC integration, and AI adapters.
pip install mycelium-sdkThe Typer CLI scaffolding and transaction management utility.
pip install mycelium-cliThe Python DSL to Soroban-compatible WASM bytecode compiler.
pip install mycelium-compilerValidate that the binaries are accessible:
Perform a system environment verification to check local toolchain requirements:
2 — Scaffold your workspace
Initialize a template agent project directory:
Generate an encrypted Ed25519 wallet keypair to sign transaction requests:
Request testnet assets from the Stellar Friendbot faucet to fund your account:
3 — Compile and Deploy
Validate type annotations and check contract AST for compatibility:
Transpile and compile Python code to optimized Soroban WebAssembly:
Deploy the compiled WASM binary to Stellar Testnet:
Register your agent profile and endpoint parameters on the Hive Registry:
4 — Run the Agent Loop
Test the agent loop in simulation dry-run mode (which simulates state changes locally without committing network fees):
Start the live agent execution listener:
mycelium doctor if compile/deploy fails. It will check whether the correct `stellar-cli` package is installed and whether the `wasm32-unknown-unknown` target is available on your local toolchain.