Astromesh Agent Runtime Platform — multi-model, multi-pattern AI agent runtime
pip install astromesh==0.66.0 Copy PIP instructions
Build, orchestrate and run AI agents with multi-model routing, tools, memory, and RAG — all configured declaratively.
Astromesh is an open-source runtime for agentic systems, designed to standardize how AI agents execute, reason, and interact with external systems.
⭐ If you find this project useful, consider starring the repository.
Most AI applications repeatedly rebuild the same infrastructure:
Astromesh centralizes these capabilities into a single runtime platform.
Instead of writing orchestration logic yourself, you define agents declaratively and let the runtime manage execution.
Full documentation site: monaccode.github.io/astromesh
Includes getting started guides, architecture deep-dives, 7 deployment modes, configuration reference, and API docs.
The built-in Model Router automatically selects the best model using strategies such as:
Astromesh includes several orchestration strategies:
Agents interact with external systems using tools:
Tools are configured declaratively in agent YAML with zero-code setup for built-ins.
Astromesh supports external messaging integrations.
Through Herald, the communications gateway of the suite: two-way routing decided by an entry agent, a Postgres outbox with a retry budget, and an operator console. WhatsApp is live there; Telegram, Web Chat and SMTP have contract stubs in place.
Full observability stack with zero configuration:
Astromesh provides a complete developer toolkit:
# Scaffold a new agent astromeshctl new agent customer-support # Run it astromeshctl run customer-support "How do I reset my password?" # See what happened astromeshctl traces customer-support --last 5 # Check costs astromeshctl cost --window 24h # Ask the copilot for help astromeshctl ask "Why is my agent slow?" Architecture Astromesh follows a layered architecture (see also docs/GENERAL_ARCHITECTURE.md for the full reference):
flowchart TB api["`**API Layer** REST / WebSocket`"] runtime["`**Runtime Engine** Agent lifecycle and execution`"] core["`**Core Services** Model Router · Memory Manager · Tool Registry · Guardrails`"] infra["`**Infrastructure** LLM Providers · Vector Databases · Observability · Storage Backends`"] api --> runtime --> core --> infra Quick Start Requirements Python 3.12+ uv package manager Install uv pip install uv Clone the repository git clone https://github.com/monaccode/astromesh.git cd astromesh Install dependencies uv sync Run the runtime uv run uvicorn astromesh.api.main:app --reload API will be available at http://localhost:8000
Create the file: config/agents/my-agent.agent.yaml
apiVersion: astromesh/v1 kind: Agent metadata: name: my-agent spec: identity: display_name: "My Agent" model: primary: provider: ollama model: "llama3.1:8b" prompts: system: | You are a helpful assistant. orchestration: pattern: react Run the Agent curl -X POST http://localhost:8000/v1/agents/my-agent/run \ -H "Content-Type: application/json" \ -d '{"query":"Hello","session_id":"demo"}' Example Use Cases AI Copilots developer assistants support agents internal knowledge assistants Autonomous Workflows document processing business automation API orchestration Multi-Agent Systems distributed reasoning hierarchical agents collaborative agents AI APIs Expose agents as programmable services.
Astromesh is an ecosystem covering the full agent lifecycle. Every component moves on its own clock, so the current versions live in one place — the ecosystem map and its release ledger — rather than in a table that goes stale the day after a release.
Anything listed with a package name is a directory of this monorepo, released on its own tag.
The Agent Development Kit is a Python SDK for building, testing, and deploying agents on Astromesh. It provides a high-level API that wraps the runtime, so you can define agents in Python code instead of YAML.
pip install astromesh-adk from astromesh_adk import Agent, Tool agent = Agent( name="my-agent", model="ollama/llama3.1:8b", system_prompt="You are a helpful assistant.", tools=[Tool.web_search(), Tool.http_request()], ) response = agent.run("What's the weather in Buenos Aires?") Python-first — Define agents, tools, memory, and guardrails in code CLI included — astromesh-adk init, astromesh-adk run, astromesh-adk test Hot reload — Edit your agent code and see changes immediately Compatible — Generates standard Astromesh agent YAML under the hood Docs: docs/ADK_QUICKSTART.md | docs/ADK_PENDING.md
Cross-platform system installer and daemon — deploy Astromesh as a native system service on Linux, macOS, and Windows.
# Debian/Ubuntu sudo apt install ./astromesh-node_0.1.10_amd64.deb sudo astromeshctl init --role full --non-interactive sudo systemctl start astromeshd Cross-platform — .deb (Debian/Ubuntu), .rpm (RHEL/Fedora), .tar.gz (macOS), .zip (Windows) System service — systemd, launchd, or Windows Service with auto-restart CLI management — astromeshctl with 17 commands (status, doctor, agents, mesh, etc.) 7 profiles — full, gateway, worker, inference, mesh-gateway, mesh-worker, mesh-inference Docs: Node Introduction | Installation Guides
A managed multi-tenant platform for deploying and operating Astromesh agents as a service. Includes a REST API, a web-based Studio for no-code agent design, and usage tracking.
# Cloud API (FastAPI + PostgreSQL) cd astromesh-cloud/api && uvicorn astromesh_cloud.main:app --port 8001 # Cloud Studio (Next.js) cd astromesh-cloud/web && npm run dev Multi-tenant — Organizations, members, API keys, rate limiting Agent lifecycle — draft → deployed → paused with quota enforcement BYOK — Bring your own provider keys (OpenAI, Anthropic, etc.) with Fernet encryption Studio — 5-step agent wizard, deploy preview, test chat, usage dashboard Runtime proxy — Proxies execution to Astromesh core with namespace isolation Docs: docs/CLOUD_OVERVIEW.md | docs/CLOUD_QUICKSTART.md | docs/CLOUD_API_REFERENCE.md
Orbit is a standalone deployment tool that provisions the full Astromesh stack on cloud infrastructure with a single command. It generates Terraform from Jinja2 templates using a provider plugin architecture.
pip install astromesh-orbit[gcp] astromeshctl orbit init --provider gcp --preset starter astromeshctl orbit plan astromeshctl orbit apply One command deploys Cloud Run (runtime + Cloud API + Studio), Cloud SQL, Memorystore, Secret Manager, VPC networking, and IAM — all configured from a single orbit.yaml file.
Docs: docs/ORBIT_OVERVIEW.md | docs/ORBIT_QUICKSTART.md | docs/ORBIT_CONFIGURATION.md
astromesh/ # Core runtime ├── api/ # REST + WebSocket API ├── runtime/ # Agent lifecycle engine ├── core/ # Model router, memory, tools, guardrails ├── providers/ # LLM provider adapters ├── orchestration/ # ReAct, Plan&Execute, Pipeline, etc. ├── rag/ # RAG pipeline ├── channels/ # WhatsApp, Slack, etc. └── mesh/ # Distributed agent networking astromesh-adk/ # Agent Development Kit (pip install astromesh-adk) ├── astromesh_adk/ └── tests/ astromesh-cloud/ # Managed platform (SaaS) ├── api/ # Cloud API (FastAPI + PostgreSQL) └── web/ # Cloud Studio (Next.js) astromesh-orbit/ # Cloud deployment tool (pip install astromesh-orbit) ├── astromesh_orbit/ │ ├── core/ # Provider Protocol + data types │ ├── terraform/ # Terraform runner + state backend │ ├── wizard/ # Interactive setup + presets │ └── providers/gcp/ # GCP templates └── tests/ astromesh-cli/ # Astromesh CLI — standalone CLI tool for managing nodes and clusters ├── astromesh_cli/ └── tests/ astromesh-node/ # Astromesh Node — daemon, CLI, and packaging (pip install astromesh-node) ├── daemon/ # astromeshd process (systemd / launchd / Windows Service) ├── cli/ # astromeshctl command-line tool ├── packaging/ # APT/RPM/Homebrew packaging configs └── tests/ Configuration:
config/ ├── agents/ ├── rag/ ├── providers.yaml └── runtime.yaml orbit.yaml # Orbit deployment config (project root) Optional: Rust Native Extensions Astromesh includes optional Rust-powered native extensions for CPU-bound hot paths (chunking, PII redaction, token counting, routing). When compiled, they provide 5-50x speedup. Without them, the system falls back to pure Python automatically.
pip install maturin maturin develop --release See docs/NATIVE_ESTENSIONS_RUST.md for details.
⭐ If you like Astromesh, give the repo a star. It helps the project reach more developers.
all centinela chromadb embeddings faiss glyph litellm mcp mesh ml observability onnx postgres qdrant redis sqlite
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.




