Skip to content

Getting Started

This guide walks through building ox, creating a minimal configuration file, and running your first prompts.

oxide-code is a Rust workspace. Build the ox binary from the repository root:

Terminal window
cargo build

You can invoke ./target/debug/ox directly or run it through Cargo:

Terminal window
cargo run --bin ox -- --help

Create ~/.config/ox/config.toml (or $XDG_CONFIG_HOME/ox/config.toml) with a provider and a default model:

default_model = "gemini"
[providers.google]
wire = "google"
api_key_file = "/path/to/gemini.key"
[models.gemini]
provider = "google"
model = "gemini-4-hydrogen"

For quick local testing without creating a key file, omit api_key_file and pass --api-key <key> on the command line, or set auth_command in the provider table.

See the Configuration Reference for all supported wires (google, openai, anthropic), credential sources, and provider options.

ox loads $XDG_CONFIG_HOME/ox/config.toml (or ~/.config/ox/config.toml) automatically when present, or you can pass an explicit file with -c / --config or OX_CONFIG:

Terminal window
# Launch the interactive terminal UI
ox
# Run the multi-turn agent non-interactively
ox run -p "Summarize the workspace layout"
# Send a one-shot completion without tools
ox complete -p "Explain Rust lifetimes in three sentences"

When no configuration file is found, ox requires --model <id> and defaults to the google wire.