Waibee Code
Waibee Code is our agent for the terminal, IDEs, and the browser. You do not need to connect it to the router: the agent has no other address. The only setup left is the API key.
```bash frame="terminal"
waibee auth login
```
The key is stored in the system keychain, or, if the keychain is unavailable, in the `secrets.json` file in the [data directory](/code/waibee-directory/#global). The `WAIBEE_API_KEY` environment variable takes precedence over the stored key, which is convenient in CI.
## What you get
The other clients in this section connect to the router through a compatible API, and that works. Waibee Code was built for the router, so it knows things about it that a compatible client cannot:
- **Autorouting.** You pick `waibee/auto` in `/model` like any other model, and the interface shows which model actually responded. If the selected model disappears from your account's catalog, the terminal interface switches the session to `waibee/auto`. Details: [Autorouting](/router/autorouting/).
- **Prompt caching.** The agent places the cache breakpoints itself, based on the structure of its own requests. Details: [Prompt caching](/router/prompt-caching/).
- **Counters.** Token usage and how full the context window is show in the interface as you work, without going to the console.
- **Router errors.** A reached limit, insufficient funds, or an unavailable model shows up as a clear message rather than a response code.
## Next steps
- [Waibee Code documentation](/code/): installation, ways to work, permissions, the web interface.
- [Quickstart](/code/quickstart/): from the API key to the first run.
- [Local web interface](/code/web/): chats, files, and diffs in the browser on your own computer.
- [Models](/router/models/): what is available to your key.
Waibee Code is our agent for the terminal, IDEs, and the browser. You do not need to connect it to the router: the agent has no other address. The only setup left is the API key.
waibee auth loginThe key is stored in the system keychain, or, if the keychain is unavailable, in the secrets.json file in the data directory. The WAIBEE_API_KEY environment variable takes precedence over the stored key, which is convenient in CI.
What you get
Section titled “What you get”The other clients in this section connect to the router through a compatible API, and that works. Waibee Code was built for the router, so it knows things about it that a compatible client cannot:
- Autorouting. You pick
waibee/autoin/modellike any other model, and the interface shows which model actually responded. If the selected model disappears from your account’s catalog, the terminal interface switches the session towaibee/auto. Details: Autorouting. - Prompt caching. The agent places the cache breakpoints itself, based on the structure of its own requests. Details: Prompt caching.
- Counters. Token usage and how full the context window is show in the interface as you work, without going to the console.
- Router errors. A reached limit, insufficient funds, or an unavailable model shows up as a clear message rather than a response code.
Next steps
Section titled “Next steps”- Waibee Code documentation: installation, ways to work, permissions, the web interface.
- Quickstart: from the API key to the first run.
- Local web interface: chats, files, and diffs in the browser on your own computer.
- Models: what is available to your key.