Skip to content

Quickstart

  • Rust 1.75+ (2021 edition)
  • An API key for a supported LLM provider
Terminal window
git clone https://github.com/pdg-global/rusty.git
cd rusty
cargo build --release

The binary will be at ./target/release/rusty.

Terminal window
cargo install rusty

When you run Rusty for the first time, the setup wizard launches automatically:

Terminal window
rusty

The wizard will:

  1. Select a provider from Xiaomi, Kimi, OpenAI, DeepSeek, Ollama, or a custom endpoint
  2. Enter your API key (masked input)
  3. Choose credential storage (OS keyring or settings file)
  4. Select a model for the chosen provider
  5. Test connectivity to verify the setup works

Configuration is saved to ~/.rusty/settings.json.

Skip the wizard by specifying a preset and API key directly:

Terminal window
rusty --preset openai --api-key sk-...

Available presets: xiaomi, kimi, openai, deepseek, ollama.

Set your API key via environment variables instead of flags:

Terminal window
export OPENAI_API_KEY=sk-...
rusty --preset openai

RUSTY_API_KEY takes precedence over OPENAI_API_KEY if both are set.

FlagDescription
--modelOverride the default model
--permissionsSet permission mode: default, accept-edits, bypass, plan
--plan-with-tasksEnable structured task tracking in responses
--thinking-budgetToken budget for reasoning/thinking content
--cwdSet the working directory
--no-claude-mdDisable discovery of AGENTS.md/CLAUDE.md/RUSTY.md context files
--append-system-promptAppend additional text to the system prompt
--resumeResume a saved session by ID

Once running, just type your prompt and press Enter. Rusty will stream the response in real-time and offer to execute tools when needed.

Try asking:

  • “What files are in this directory?”
  • “Read the Cargo.toml and explain the dependencies”
  • “Create a hello world script in Python”

Use /help to see available slash commands, or /quit to exit (session is saved automatically).