Why cargo-ai
Open Source and Fully Auditable
Generate code your team can read, review, and approve for production use.
Handles Real Inputs
Work with text, images, URLs, and common files instead of limiting agents to a single prompt string.
Real Actions, Not Just Prompts
Run local commands, call child agents, pass command-line arguments, and send email follow-ups.
Supports Advanced Logic
Add conditions and follow-up behavior without hand-building a custom app or orchestration layer.
No Extra Token Plumbing Required
Use your existing Codex workflow when it fits, or bring your own model access when you want direct provider control.
Built to Grow With You
Start with one clear definition, then add child agents, richer actions, and shared workflows as your needs grow.
Choose the model path that fits your workflow.
GPT-5, or local Ollama models like Mistral, Qwen2.5, and Qwen2.5-VL.
Share, hatch, repeat
Cargo-AI is not just about local execution. Create a free account for email alerts and to publish your definitions in minutes. Keep them private, or make them public when you want other people to hatch them locally on their own machines.
Built for AI-assisted iteration
Keep the agent readable, diffable, and easy to improve with tools like Codex without losing trust in what it does.
From Definition to Executables in Minutes with Codex Support
Below is a real example of how you can work with Codex to build a Cargo AI agent. Once it is built, you can inspect the JSON file directly and confirm that the agent is doing exactly what you want.
Build your agent
me > "Hey, Codex, can you build me a Cargo AI agent?"
me > "It should read the attached file and return three things:
summary,category, and theconfidence_levelassociated with that category."me > "Make
confidence_levelone to five."me > "For the categories, do
market_update,financial_result,regulatory_notice, orother."me > "And if the category is
market_updatewith a confidence greater than 3, send me an email."codex > "Market alert agent built and checked."
Inspect agent file
vim market_alert.json
Hatch your agent
Run your agent
./market_alert
Using default profile 'my_open_ai'
✅ Email sent to bob@gmail.com.
If the file matches your action logic, Cargo AI will email you the results immediately.
SUBJECT: Document category: market_update
BODY:
Summary: A daily market update reporting that major U.S. stock indexes were mostly lower on March 11, 2026.
Confidence level: 5
Run it again and again with different inputs, or switch to a private local model when you want more control over sensitive work.
1. Review market_alert.json
Check the agent definition, schema, and action logic.
2. Hatch market_alert
Turn the JSON definition into a local agent you can run directly.
3. Run market_alert
Run it locally with real inputs and contract-enforced outputs.
If you want to track the work, star the project on GitHub. If you have an agent idea or a workflow you want to automate, reach out on LinkedIn or open an issue on GitHub.