Installation
Installation
Section titled “Installation”Codive can be installed on macOS, Linux, and Windows. Choose your preferred installation method below.
Quick Install
Section titled “Quick Install”If you have Rust installed, the easiest way to install Codive is via Cargo:
cargo install codiveThis installs the latest stable version from crates.io.
On macOS or Linux with Homebrew:
brew install codiveOne-line install script for macOS and Linux:
curl -fsSL https://codive.dev/install.sh | shThis script detects your OS and architecture, downloads the appropriate binary, and installs it to ~/.local/bin.
Building from Source
Section titled “Building from Source”-
Clone the repository
Terminal window git clone https://github.com/toliaqat/codive.gitcd codive -
Build with Cargo
Terminal window cargo build --release -
Install the binary
Terminal window cargo install --path crates/agent-cli
Requirements
Section titled “Requirements”Minimum Requirements
Section titled “Minimum Requirements”- Rust 1.75+ (if building from source)
- Operating System: macOS 12+, Ubuntu 20.04+, Windows 10+
- Architecture: x86_64 or ARM64
API Keys
Section titled “API Keys”Codive requires an API key from an LLM provider. Currently supported:
| Provider | Environment Variable | Get API Key |
|---|---|---|
| Anthropic | ANTHROPIC_API_KEY | console.anthropic.com |
| OpenAI | OPENAI_API_KEY | platform.openai.com |
Set your API key in your shell:
# For Anthropic Claude (recommended)export ANTHROPIC_API_KEY="sk-ant-..."
# For OpenAI GPT-4export OPENAI_API_KEY="sk-..."Verify Installation
Section titled “Verify Installation”After installation, verify Codive is working:
codive --versionYou should see output like:
codive 0.1.0Configuration
Section titled “Configuration”Codive looks for configuration in the following locations (in order):
./codive.toml(project-specific)~/.config/codive/config.toml(user config)- Environment variables
Example configuration file:
[provider]name = "anthropic"model = "claude-sonnet-4-20250514"
[agent]max_iterations = 50confirm_writes = true
[tools]enabled = ["read", "write", "bash", "glob", "grep"]Updating
Section titled “Updating”To update Codive to the latest version:
cargo install codive --forcebrew upgrade codiveRun the install script again:
curl -fsSL https://codive.dev/install.sh | shTroubleshooting
Section titled “Troubleshooting”Command not found
Section titled “Command not found”If codive is not found after installation, ensure the install directory is in your PATH:
# For Cargo installsexport PATH="$HOME/.cargo/bin:$PATH"
# For script installsexport PATH="$HOME/.local/bin:$PATH"API Key Issues
Section titled “API Key Issues”If you get authentication errors:
- Verify your API key is set:
echo $ANTHROPIC_API_KEY - Check the key is valid at your provider’s dashboard
- Ensure there are no extra spaces or quotes around the key
Permission Denied
Section titled “Permission Denied”On Linux/macOS, you may need to make the binary executable:
chmod +x ~/.local/bin/codiveNext Steps
Section titled “Next Steps”Now that Codive is installed, continue to the Quick Start guide to learn the basics.