Why Cargo-AI
Real Inputs, Structured Results
Works with text, URL, image, and file inputs.
Use Your Existing ChatGPT Plan
Run with your Codex login, or bring your own API key or local model.
The Power to Create Your Own Tools
Create advanced Rust tools and integrate them directly with your agents.
Built on Your Machine
Run locally with your own profiles and keep control of the files, tools, and outputs.
Inspectable by Design
Keep agent behavior in JSON your team can read, diff, review, and improve.
Package Real Projects
Keep agents, custom tools, and assets together when a workflow grows beyond one file.
Choose the model path that fits your workflow.
GPT-5, or local Ollama models like Gemma, Llama, and Mistral.
How It Fits Together
1. Define the Agent
Start with a small JSON definition for inputs, structured output, and allowed actions.
2. Run and Inspect
Run the JSON locally, inspect the result, and iterate before exporting anything.
3. Add or Create Your Own Tools
Create advanced Rust tools and make them part of the agent workflow.
4. Package and Share
Assemble agents, tools, and assets into a project that can move across machines.
Quick Start
Before you start, install Rust and Cargo, Codex CLI, and the Codex app. This guide then installs Cargo-AI, connects your ChatGPT account through Codex CLI, and opens your first project in the Codex app.
First local setup
For the best authoring experience, use the Codex app. Codex CLI handles sign-in and remains available when you want a terminal workflow.
Setup commands
- Install Cargo-AI
cargo install cargo-ai --locked - Use Codex CLI as the auth bridge
codex login - Add the default OpenAI profile
cargo ai profile add openai-account --server openai --model gpt-5.4 --auth openai_account --default - Authenticate that profile
cargo ai auth login openai --profile openai-account - Verify the profile
cargo ai run adder_test --profile openai-account - Create your first project
cargo ai new my-agent - Enter the project
cd my-agent - Add Codex guidance
cargo ai add guidance --style codex - Open the project in Codex
open -a Codex .
% cargo install cargo-ai --locked
Installed cargo-ai
Codex/OpenAI sign-in is separate from any Cargo-AI account. This first run stays local; account-backed publishing and sharing come later.
Ready for a Deeper Dive?
Use GitHub for the full developer path: README, demos, examples, install notes, tool authoring guidance, and release history.
Continue on GitHub