Get started
Build your first agent.
Start with a conversation. Your coding assistant can help you set up Cargo-AI and turn one useful task into an agent.
Open a project in Codex or Claude Code.
Choose the folder where you want to build.
Give your assistant the starter prompt.
It checks your setup and guides installation.
“Make this a Cargo-AI project, following the best practices at Cargo-AI.org.”
View the full prompt for your assistant
Make this a Cargo-AI project, following the best practices at https://cargo-ai.org. First, read the installation and project guidance at https://cargo-ai.org/AGENTS.md. Identify my operating system, architecture, shell, and existing project setup. Follow the appropriate installation instructions, reuse existing configuration where suitable, and apply the documented project best practices. Use the installed version's guidance and available commands. Verify the resulting setup and explain anything that still requires my input.
Describe one thing your agent should do.
For example: “Read these project notes and return a structured list of open questions.” Start with a small input, run the agent, and inspect the result.
Follow along when your assistant asks you to install a tool, sign in, or approve a step.
Terminal setup Optional · macOS example
This walkthrough is for people who prefer to run the setup commands themselves. It illustrates the macOS Codex path. For Linux, Windows, or another provider, see the GitHub documentation.
Before you start, install Rust and Cargo, Codex CLI, and the Codex app. This example 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 (macOS)
open -a Codex .
The interactive guide is an illustration of setup, not a live terminal. Select Play or step through at your own pace.% cargo install cargo-ai --locked
Installed cargo-ai
Execution runs on your machine. This example retrieves a public sample and sends inputs to OpenAI. Codex/OpenAI sign-in is separate from a Cargo-AI account; account-backed publishing and sharing come later.