Skip to content
docs

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.

Terminal window
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. The WAIBEE_API_KEY environment variable takes precedence over the stored key, which is convenient in CI.

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.
  • 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.