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:

bash
pip install mycelium-stellar

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:

mycelium-stellarPyPI

The parent wrapper package bundling the full toolchain (DSL, SDK, CLI, compiler).

pip install mycelium-stellar
mycelium-sdkPyPI

The autonomous agent runtime core, providing wallet encryption, RPC integration, and AI adapters.

pip install mycelium-sdk
mycelium-cliPyPI

The Typer CLI scaffolding and transaction management utility.

pip install mycelium-cli
mycelium-compilerPyPI

The Python DSL to Soroban-compatible WASM bytecode compiler.

pip install mycelium-compiler

Validate that the binaries are accessible:

bash
mycelium --version

Perform a system environment verification to check local toolchain requirements:

bash
mycelium doctor

2 — Scaffold your workspace

Initialize a template agent project directory:

terminalbash
mycelium init my_agent
cd my_agent

Generate an encrypted Ed25519 wallet keypair to sign transaction requests:

terminalbash
mycelium newwallet --passphrase "my-secure-password"

Request testnet assets from the Stellar Friendbot faucet to fund your account:

terminalbash
mycelium fund

3 — Compile and Deploy

Validate type annotations and check contract AST for compatibility:

terminalbash
mycelium check contract.py

Transpile and compile Python code to optimized Soroban WebAssembly:

terminalbash
mycelium compile --optimize

Deploy the compiled WASM binary to Stellar Testnet:

terminalbash
mycelium deploy --network testnet

Register your agent profile and endpoint parameters on the Hive Registry:

terminalbash
mycelium register

4 — Run the Agent Loop

Test the agent loop in simulation dry-run mode (which simulates state changes locally without committing network fees):

bash
mycelium test

Start the live agent execution listener:

bash
mycelium run
Always run 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.
Mycelium v0.1.0-alpha · Stellar Testnet