| Crates.io | cargo-ox |
| lib.rs | cargo-ox |
| version | 0.1.0 |
| created_at | 2025-11-29 15:38:53.532895+00 |
| updated_at | 2025-11-29 15:38:53.532895+00 |
| description | Cargo Oxide is a CLI tool for AI-powered Rust development. |
| homepage | https://github.com/vladneyo/cargo-ox |
| repository | https://github.com/vladneyo/cargo-ox |
| max_upload_size | |
| id | 1956853 |
| size | 58,385 |
cargo-ox is a Cargo subcommand that uses a local LLM (via Ollama) to help you develop Rust code. It can explain compilation errors and suggest refactors.
We provide a setup script to automatically install Ollama (if missing), start the server, and pull the required model.
./setup_ollama.sh
This will prepare your environment and ensure the default model (gpt-oss:20b) is available.To install cargo-ox locally:
cargo install --path .
Run cargo ox explain to run cargo check, capture any errors, and get an AI explanation with fix suggestions.
cargo ox explain
You can also run it on a specific project directory:
cargo ox explain --project ../my-other-project
Run cargo ox refactor to get AI suggestions for improving a specific file.
cargo ox refactor --file src/main.rs
By default, cargo-ox uses the gpt-oss:20b model. You can override this by setting the OX_MODEL environment variable:
export OX_MODEL=llama3
cargo ox explain