Getting Started with proto
By the end of this tutorial you will have proto installed, connected to a model, and running your first agentic session in a real project.
Before you begin
You need:
- A terminal (macOS, Linux, or Windows WSL)
- Node.js 20 or later — download from nodejs.org
- A project directory to work in
- An API key for at least one model provider (OpenAI, Anthropic, Gemini, or any OpenAI-compatible endpoint)
Step 1: Install proto
npm install -g protoVerify the installation:
proto --versionNOTE
Restart your terminal after installation if the proto command is not found.
Optional: install the beads task tracker
proto integrates with beads_rust (br), a SQLite-backed per-project task tracker. Install it with Cargo:
cargo install beads_rustSee Reference → Beads Task Tracker for full CLI documentation.
Step 2: Run the setup wizard
The fastest way to get connected is the interactive setup wizard. From your terminal:
proto setupIt walks you through choosing a provider (OpenAI, Anthropic, Gemini, or any OpenAI-compatible / local endpoint), entering an API key, discovering the available models, picking a default, and optionally configuring voice input — then writes everything to ~/.proto/settings.json for you. Re-run proto setup any time to switch providers or change the default model.
TIP
proto is local- and privacy-first: point the wizard at a local or self-hosted OpenAI-compatible endpoint (e.g. a local vLLM or Ollama-compatible server) to keep your code, keys, and context entirely on your machine.
If you start proto before configuring anything, it routes you straight into this wizard.
Prefer to configure by hand?
Add your provider to ~/.proto/settings.json and export the key in your shell (do not put secrets directly in settings.json):
{
"modelProviders": {
"openai": [{ "id": "gpt-4o", "name": "GPT-4o", "envKey": "OPENAI_API_KEY" }]
}
}export OPENAI_API_KEY=sk-...For other providers — Anthropic, Gemini, gateways, or a local endpoint — see Guides → Configure Models & Auth.
Step 3: Start your first session
Open a terminal in any project directory and start proto:
cd /path/to/your/project
protoSince proto setup already picked your default model, you land straight in a session. Use /model at any time to switch.
Step 4: Try your first prompts
Ask proto to explore the project:
what does this project do?explain the folder structureAsk it to make a change:
add a hello world function to the main fileproto will find the right file, show you the proposed edit, and ask for approval before writing anything.
Step 5: Use Git with proto
what files have I changed?commit my changes with a descriptive messagecreate a new branch called feature/hello-worldEssential commands
| Command | What it does |
|---|---|
proto | Start an interactive session |
proto -p "..." | One-shot non-interactive mode |
/help | List all slash commands |
/model | Switch the active model |
/auth | Change authentication |
/compress | Compress history to save tokens |
/clear | Clear the screen (Ctrl+L) |
/quit or /exit | Exit proto |
See Reference → Commands for the full list.
Tips for effective sessions
Be specific — instead of "fix the bug", say "fix the login screen blank-page bug that appears after three failed attempts".
Break down large tasks — proto works best with focused requests. For complex work, describe one step at a time or use the coordinator sub-agent.
Let proto explore first — before making changes, ask it to read and summarize the relevant code.
Use approval mode — by default proto asks before every file write. See Guides → Approval Mode to adjust this.
Next steps
- Build Your First Sub-Agent — delegate tasks to specialized agents
- Create Your First Skill — package reusable expertise into a skill
- Guides — task-oriented how-tos for MCP, hooks, headless mode, IDE integration, and more