explaingit

myceliumstellar/mycelium

Analysis updated 2026-05-18

1PythonAudience · developerComplexity · 4/5LicenseSetup · moderate

TLDR

A Python-first framework for writing Stellar blockchain smart contracts without Rust, including a compiler that converts Python to WebAssembly, a CLI for deployment, and an SDK for building AI agents that coordinate on-chain.

Mindmap

mindmap
  root((Mycelium))
    What It Does
      Python smart contracts
      No Rust required
      Stellar Soroban deploy
    Components
      Compiler Python to WASM
      SDK for agent logic
      CLI for deployment
      Web IDE playground
    Agent Features
      On-chain registry
      Agent discovery
      x402 micropayments
    Setup
      pip install mycelium-stellar
      mycelium init project
      No Rust needed
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Write a Stellar smart contract in Python using Mycelium decorators and deploy it to the Soroban testnet without installing Rust.

USE CASE 2

Build an AI agent that registers in the on-chain Hive Registry, discovers other agents by capability, and settles payments between them using x402 micropayments.

USE CASE 3

Use the Mycelium Web IDE to write and compile a Soroban smart contract in a browser without any local toolchain setup.

USE CASE 4

Generate an encrypted Stellar wallet keypair, fund it on testnet, compile a Python contract, and deploy it in one CLI workflow.

What is it built with?

PythonWebAssemblyStellarSorobanFastAPINext.jsDocker

How does it compare?

myceliumstellar/myceliuma-bissell/unleash-liteabhiinnovates/whatsapp-hr-assistant
Stars111
LanguagePythonPythonPython
Setup difficultymoderatehardhard
Complexity4/54/53/5
Audiencedeveloperresearcherdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires a Stellar testnet wallet, remote compilation is available so no local Rust toolchain is needed.

MIT license: use freely for any purpose, including commercial use, as long as you keep the copyright notice.

In plain English

Mycelium is a Python framework for writing and deploying smart contracts on the Stellar blockchain without needing to learn the Rust programming language. Stellar's smart contract platform, called Soroban, normally requires Rust knowledge because contracts compile to WebAssembly and Rust is the primary supported language for that compilation step. Mycelium removes that requirement by letting you write contracts in Python instead. You write a smart contract using Python with specific decorators and type annotations that Mycelium understands. A compiler then parses your Python code, converts it to Soroban-compatible Rust, and compiles that to a WebAssembly binary. You can do this compilation remotely through Mycelium's hosted backend if you do not have Rust installed locally, or locally if you do. Deploying a compiled contract to the Stellar network uses Mycelium's own Python deployment code and does not require any Rust or Stellar CLI tools on your machine. Alongside contract development, Mycelium includes an SDK for building AI agents that run on-chain. Agents can register themselves in a global on-chain registry, discover other agents by their capabilities, and coordinate payments between each other using micropayment channels tied to the x402 payment protocol. The SDK handles wallet management, including key generation with encryption, testnet funding via the Stellar Friendbot service, and transaction signing. The toolchain is split into four installable Python packages: the full bundle, an SDK for agent logic, a CLI for scaffolding and deployment, and a compiler package. Installing the full bundle via pip brings all four. A web-based IDE is also available at a hosted URL for writing and compiling contracts without any local setup. The command-line tool includes commands for initializing a new project, generating a wallet, checking a contract for errors before compiling, compiling, deploying, registering an agent in the registry, and checking status. The README describes these in detail. License is MIT. The full README is longer than what was shown.

Copy-paste prompts

Prompt 1
Using Mycelium, show me how to write a simple Python smart contract with @contract decorators, compile it to WebAssembly remotely, and deploy it to the Stellar testnet.
Prompt 2
How does the Mycelium compiler convert Python AST nodes into Soroban Rust code? Walk me through the transpilation pipeline for a simple storage contract.
Prompt 3
I want to register an AI agent in the Mycelium Hive Registry so other agents can discover it. Show me the CLI commands and what fields I need to include.
Prompt 4
How does Mycelium's x402 payment routing work for agent-to-agent micropayments on the Stellar network?
Prompt 5
Walk me through the full flow of using the Mycelium CLI: init a project, generate a wallet, fund it on testnet, compile with --optimize, and deploy to testnet.

Frequently asked questions

What is mycelium?

A Python-first framework for writing Stellar blockchain smart contracts without Rust, including a compiler that converts Python to WebAssembly, a CLI for deployment, and an SDK for building AI agents that coordinate on-chain.

What language is mycelium written in?

Mainly Python. The stack also includes Python, WebAssembly, Stellar.

What license does mycelium use?

MIT license: use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is mycelium to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is mycelium for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Scan in gitsafehub Deploy in gitdeployhub myceliumstellar on gitmyhub

Verify against the repo before relying on details.