Kimi K3 in Goose: custom provider setup in 5 minutes

Model: Kimi K3.1 Pro · ✓ Verified on goose v1.60.1 · 2026-11-18

Goose is the open-source agent CLI — Apache-2.0, 55k stars, and recently moved to github.com/aaif-goose/goose (the old block/goose links redirect). It talks to any LLM through provider plugins, and its generic OpenAI provider works with any OpenAI-compatible endpoint. That includes Wallaby. Disclosure: Wallaby Token sells API access to Kimi K3, and the endpoint used here is ours.

The whole setup is one JSON file and one API key: drop the file in, and Wallaby tops the provider list in your goose — custom providers sort first there, which is goose's design, not a placement they gave us. A manual env-var route still works, and we keep it below — its one trap, a doubled /v1, is the kind of 404 you will otherwise debug at midnight.

Update (2026-11-18): this guide now configures Kimi K3.1 Pro, our lead model: $1.80 / $9.00 per 1M input/output ($0.18 cached), 10% off list. On 18 November 2026, goose v1.60.1 answered the Step 4 prompt on it through both routes below; the file route took two requests and $0.0096. The wallaby.json file ships both models, so to use Kimi K3 instead, set GOOSE_MODEL: kimi-k3; it is $2.55 / $12.75 ($0.255 cached). Re-download the file if you added it before 5 November. The screenshots and the 404 error below were captured with kimi-k3. Full K3.1 Pro setup and pricing →

What you need

  • A Wallaby Token account (create one at wallabytoken.com; new accounts get $0.50 in free credit, no card) and an API key from the console
  • macOS or Linux
  • Five minutes

Step 1: Install the goose CLI

curl -fsSL https://github.com/aaif-goose/goose/releases/download/stable/download_cli.sh | bash

One naming trap before you start: brew install goose installs a database migration tool, not the agent. Same name, different project. Use the installer above.

goose --version    # 1.60.1 at the time of writing

Step 2: Add the Wallaby provider file

Goose supports custom providers as plain JSON files — the maintainers' preferred way for services like ours to plug in (the story is in the FAQ). Ours is one download:

mkdir -p ~/.config/goose/custom_providers
curl -fsSL -o ~/.config/goose/custom_providers/wallaby.json \
  https://wallabytoken.com/blog/assets/kimi-k3-in-goose/wallaby.json

Now run goose configure, choose Configure Providers, and Wallaby is sitting at the top of the list — custom providers sort first:

Goose provider list after adding the Wallaby custom-provider file — Wallaby appears first because custom providers sort ahead of the built-ins

Step 3: Set your key

export WALLABY_API_KEY=sk-your-wallaby-key

Add it to ~/.zshrc so it survives new terminals. If you pick Wallaby through goose configure instead, it prompts for the key and stores it in your keychain.

Prefer config files? Two lines in ~/.config/goose/config.yaml do the same job:

GOOSE_PROVIDER: wallaby
GOOSE_MODEL: kimi-k3.1-pro

Step 4: Run it

goose run -t "What model are you? Answer in one sentence."

Our verification run on v1.54.0, October 15, 2026:

Goose session — "new session · wallaby kimi-k3", and the model answering: I'm Kimi, developed by Moonshot AI

The model introduces itself: "I'm Kimi, developed by Moonshot AI." Self-reported, straight from the endpoint.

The manual route, and its one trap

No file needed — goose's generic OpenAI provider works with any OpenAI-compatible endpoint:

export OPENAI_API_KEY=sk-your-wallaby-key
export OPENAI_HOST=https://api.wallabytoken.com

Read that second line again. No /v1 at the end. Goose's OpenAI provider appends /v1/chat/completions itself. If you include the /v1, as most API docs tell you to, your requests go to /v1/v1/chat/completions and die with a 404. The exact error from our first run:

Request failed: Resource not found (404) at https://api.wallabytoken.com/v1/v1/chat/completions: Invalid URL (POST /v1/v1/chat/completions).

Drop the suffix and it works. With this route, point goose at the model through ~/.config/goose/config.yaml:

GOOSE_PROVIDER: openai
GOOSE_MODEL: kimi-k3.1-pro

Verify on the billing side

A working reply is two legs of the stool; the third is the bill. Open your console's Usage Logs. Seconds after the run, the request shows up with model, token counts, and cost, itemized per request. Total cost of that smoke prompt: under two cents.

Pricing

Per 1M tokens, as of October 2026 (current rates always on the pricing page):

Wallaby K3.1 Pro Wallaby K3 Official list (K3.1 Pro)
Input $1.80 $2.55 $2.00
Cached input $0.18 $0.255 $0.20
Output $9.00 $12.75 $10.00

Agent loops re-read the same context every turn, which is exactly what cached input pricing rewards — the cached-input line does real work in a tool like goose. The $0.50 trial credit covers this guide many times over.

FAQ

Does goose support custom OpenAI-compatible providers? Yes — that is what Step 2 uses. A JSON file in custom_providers turns any OpenAI-compatible endpoint into a first-class entry in the provider list. Without the file: set GOOSE_PROVIDER: openai, point OPENAI_HOST at the endpoint's root (no /v1), and provide the key in OPENAI_API_KEY.

Why do I get 404 at /v1/v1/chat/completions? Your OPENAI_HOST ends in /v1 and goose added another one. Remove the suffix.

Is there a native Wallaby provider coming? No, and that is now settled. We proposed one — PR #12717 — and the maintainers closed the request, citing their provider policy: services should ship a documented custom-provider JSON file, and built-in additions are granted only occasionally, by exception. Fair enough. The file in Step 2 is exactly that, and it works today, without waiting for a goose release. One precision: Wallaby topping the list after you add the file is just how goose sorts custom providers — local placement, not an endorsement.

Get started

Create an account at wallabytoken.com, mint a key, download one JSON file, export one variable. If goose is your agent of choice, you are five minutes from Kimi K3. And if you go manual and hit the 404, you now know it is a doubled /v1, not your key.

Why Wallaby

Every request lands on your invoice as an itemized line with token counts — no content logs, no training on your data, no usage reports built from your traffic. We host open-weight models only, keep a public status page, and run our own work through the same gateway we sell.

Live pricing · Status · Why we built Wallaby

Like the Dispatch? Add Wallaby as a preferred source on Google, or subscribe via RSS.
Did this help?