CanyonOS is an open source platform that deploys, observes and scales a multi-agent application written in plain Python, with no SDK, no decorators and no tracing code, locally or on your own infrastructure.
Maintained by CanyonCode.
- Easy deployment: Developers write agents in python locally without any special features. CanyonOS instruments the code to simplify and automate workflow group.
- Complete Observability: All metrics, logs, and traces from your runtime are collected and displayed, with OTel-compatability allowing connection to any OTel-compatable frontend. A Dashboard is included.
- Fully Asynchronous: Asynchronous execution for scale is built in, without modifying your workflow.
- Non-invasive: None of your existing code is changed. A new
.canyonfolder is created when building on top of a existing workflow.
| Without CanyonOS | With CanyonOS | What you do with CanyonOS | |
|---|---|---|---|
| Orchestration | Set up Kubernetes or other infrastructure | canyonos deploy does this automatically |
Run one command |
| Observability | Add Langfuse or other observability platforms | Built in, exports OTel anywhere | Nothing: open the dashboard the deploy starts |
| Async Execution | Add Ray or other scaling frameworks | Built in, no code changes | Nothing for parallel calls. To autoscale, a five-line scaling.yaml, about 2 minutes |
| Cost Transparency | Difficult calculations and spreadsheets | Out of the box insights per workflow and per agent | Nothing to see cost. To cap it, one llms.yaml entry per model, a few minutes |
- Python 3+
- Docker with Compose v2
- Agents run on Python 3.15 by default. For an earlier one (3.10 or later), add a
.python-versionfile with that version, such as3.12, to your workflow folder. - Optional: A coding agent of your choice to convert an existing workflow
A workflow is a program that delivers an outcome, and each agent is a specialist it trusts with one step.
A workflow can be defined as a map or graph of agents. You can think of these as a group of distributed programs that accomplish a more complex task through coordinated effort. In CanyonOS, your workflow is represented by your workflow folder.
Your code says what the application does, and the config says how it runs: how many replicas, what resources, which models.
Each agent completes a specialized job, running and scaling in its own containers. A few well-chosen agents are easier to run than many small ones. See our docs on workflow design for more information.
curl -fsSL https://raw.githubusercontent.com/CanyonCodeCoreAI/canyonos/main/packages/cli/install.sh | shor
uv tool install canyonosor
pip install canyonoscanyonos doctorcanyonos quickstartCreate a new directory and run canyonos new-app.
mkdir my-proj
cd my-proj
canyonos new-appEach agent is a class in its own file under agents/.
agents/my_agent.py
class MyAgent:
def run(self, query: str) -> str:
return f"MyAgent got: {query}"A workflow is also an agent. It receives the requests and calls the others.
agents/workflow.py:
from agents.my_agent import MyAgent
class Workflow:
def main(self, query: str = "hello") -> dict:
return {"answer": MyAgent().run(query=query)}Deploy it from its folder:
canyonos deploy .Estimated time: a few minutes with Docker running. The deploy is live in under a minute for a small workflow once the CanyonOS images are on the machine; the first deploy takes longer while Docker downloads them.
For details on new workflows, read: building a new workflow.
For configuration, read: workflow configuration.
For an existing non-cayonOS workflow, run canyonos convert in its folder, then deploy it and test it.
Converting needs a coding agent in your terminal, such as Claude Code, Codex, Gemini CLI
or Cursor CLI; Convert your own workflow lists them
all.
cd your-workflow
canyonos convert
canyonos deploy . --api-key <your api key>
canyonos test "your query"The endpoint and the dashboard answer only requests that carry that key, as
Authorization: Bearer <your api key>; see API key.
The complete path, including credentials, requests, and cleanup, is in the CanyonOS documentation. Start with Installation or Start from scratch.
| Command | What it does |
|---|---|
deploy |
Build Docker images, launch the workflow, start the dashboard |
stop |
Stops the current local deployment |
dashboard |
Open the dashboard, signed in with this workflow group's API key |
convert |
Optional: convert an existing workflow to CanyonOS format using your coding agent |
feedback |
Send feedback to developers |
See the full list of CLI commands.
Report security issues as described in SECURITY.md.
CanyonOS is licensed under the GNU Affero General Public License v3.0.
If you find CanyonOS useful for your research, please cite our related paper (Nalar):
@misc{laju2026nalar,
title={Nalar: An agent serving framework},
author={Marco Laju and Donghyun Son and Saurabh Agarwal and Nitin Kedia and Myungjin Lee and Jayanth Srinivasa and Aditya Akella},
year={2026},
eprint={2601.05109},
archivePrefix={arXiv},
primaryClass={cs.DC},
url={https://arxiv.org/abs/2601.05109},
}