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:
cargo buildYou can invoke ./target/debug/ox directly or run it through Cargo:
cargo run --bin ox -- --helpMinimal Configuration
Section titled “Minimal Configuration”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.
First Run
Section titled “First Run”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:
# Launch the interactive terminal UIox
# Run the multi-turn agent non-interactivelyox run -p "Summarize the workspace layout"
# Send a one-shot completion without toolsox complete -p "Explain Rust lifetimes in three sentences"When no configuration file is found, ox requires --model <id> and defaults to the google wire.
Next Steps
Section titled “Next Steps”- CLI Reference: subcommands, flags, and session management.
- Configuration Reference: full
config.tomlschema and credential precedence. - Commands, TUI, and Themes: interactive slash commands, keybindings, layout presets, and palettes.
- Architecture Overview: workspace crates and dependency boundaries.