โก Quick Start
Let's get you productive with Code Puppy in just a few minutes!
Zero telemetry, verified by MITM integration tests. Your prompts go directly to your LLM providerโno middlemen, no analytics, no data collection. Read the full privacy policy โ
Your First Run
Start Code Puppy in your project directory:
cd your-project
code-puppy
You'll see the welcome message with a happy bouncing puppy! ๐ถ
If this is your first time, set up an API key using the /set command:
/set openai_api_key sk-your-key-here
# Or for other providers:
/set anthropic_api_key sk-ant-your-key
/set google_api_key your-key
Keys are saved automatically and persist across sessions!
Basic Usage
Just type what you want to do in natural language:
- "Create a Python function that calculates fibonacci numbers"
- "Review the code in src/main.py for bugs"
- "Add error handling to the database connection"
- "Write tests for the user authentication module"
Essential Commands
Here are the commands you'll use most often:
| Command | Description |
|---|---|
/help |
Show all available commands |
/agent <name> |
Switch to a different agent |
/model <name> |
Change the AI model |
/add_model |
Browse & add from 1000+ models |
/tools |
Show available tools |
/cd <path> |
Change working directory |
/exit |
Exit Code Puppy |
๐ The Model Marketplace
You're not locked into a single provider. Access the entire AI ecosystem with /add_model
Code Puppy connects to the models.dev live API, giving you instant access to the latest models from every major provider. This is a killer feature โ no other CLI tool gives you this kind of flexibility!
โ๏ธ Supported Providers
Browse models from all the big names and emerging players:
GPT-5.1, Codex
Claude 4.5 family
Gemini-3
Large, Medium, Codestral
LPU-accelerated
Open models
Fast inference
Command R+
Online models
Cost-effective
Grok models
Cerebras, Z.AI, etc.
๐ฎ Interactive Model Browser
Just type one command to open the model marketplace:
/add_model
This launches a beautiful Terminal UI where you can:
- ๐๏ธ Browse by provider โ See all models from each provider
- ๐ Search instantly โ Find models by name or capability
- ๐ Preview details โ Context length, pricing, input/output costs
- โ One-click add โ Select and it's immediately available!
- ๐ Live data โ Always fetches the latest from models.dev API
Models you add are saved to ~/.code_puppy/extra_models.json and persist across sessions. Build your perfect collection of models for different tasks!
๐ Switching Models
Once you have models configured, switching is instant:
# Switch to a specific model
/model gpt-5.1
/model claude-4-5-sonnet
/model Gemini-3
# Interactive picker - shows all your models!
/model
Running /model without arguments opens an interactive picker with all your configured models, complete with details and quick selection!
Switching Agents
Different tasks need different specialists. Switch agents on the fly:
# For planning complex features
/agent planning-agent
# For code review
/agent code-reviewer
# For security auditing
/agent security-auditor
# For browser automation
/agent qa-kitten
# Back to default
/agent code-puppy
๐จ Interactive Menus
Code Puppy isn't just text commands โ it features beautiful Terminal User Interfaces (TUIs) for complex operations. Navigate with arrow keys, search with fuzzy matching, and preview before you commit!
Arrow keys โข Fuzzy search โข Live previews โข Syntax highlighting
๐ค Model & Agent Pickers
| Command | What It Does |
|---|---|
/model |
Interactive model picker โ browse all configured models with arrow keys, see details, instant switch |
/agent |
Interactive agent picker โ see all 15+ agents with descriptions, pick the right specialist |
/add_model |
Model marketplace โ browse 65+ providers, search 1000+ models, preview pricing & context length |
/model_settings |
Configure per-model settings โ temperature, max tokens, seed, and more |
๐ MCP Server Wizards
| Command | What It Does |
|---|---|
/mcp install |
Browse the MCP registry, search servers, one-click install with guided setup |
/mcp add |
Add custom MCP server with step-by-step wizard โ command, args, env vars |
/mcp edit |
Edit existing server configuration interactively |
๐พ Session & Config
| Command | What It Does |
|---|---|
/resume or /autosave_load |
Browse saved sessions with timestamps, preview conversation, pick and restore |
/diff |
Configure diff highlighting colors โ pick colors for additions, deletions, context |
Most interactive menus support fuzzy search โ just start typing to filter! Press Esc to cancel, Enter to confirm.
Working with Files
Code Puppy can read, create, and modify files for you:
- "Show me the contents of src/app.py"
- "Create a new file called utils.py with helper functions"
- "Add logging to all functions in main.py"
- "Find all TODO comments in the codebase"
Running Shell Commands
Code Puppy can execute shell commands for you:
- "Run the tests"
- "Install the required dependencies"
- "Check the git status"
- "Start the development server"
By default, Code Puppy will ask for confirmation before running shell commands. Use /set yolo_mode true to disable confirmations (use with caution!).
Keyboard Shortcuts
| Shortcut | Action |
|---|---|
Ctrl+C |
Cancel current operation |
Ctrl+D |
Exit Code Puppy |
Tab |
Auto-complete commands |
@ |
Trigger file path completion |
Up/Down |
Navigate command history |
Example Session
๐ถ Code Puppy at your service!
> Create a Python script that fetches weather data from an API
๐ถ Let me help you with that!
[Creates weather.py with proper error handling and type hints]
> Add unit tests for the weather functions
๐ถ I'll create comprehensive tests!
[Creates test_weather.py with pytest fixtures]
> /agent code-reviewer
๐ก๏ธ Switching to Code Reviewer agent...
> Review the weather.py file
๐ก๏ธ Analyzing weather.py for issues...
[Provides detailed code review with suggestions]
> /exit
๐ถ Goodbye! Happy coding!
Next Steps
- Configuration - Customize your setup
- Explore All Agents - Find the right agent for your task
- Commands Reference - Learn all commands
- Tools Reference - Understand available tools