Skip to main content
goose is an open-source AI agent that works in your terminal and as a desktop app. It reads custom providers from JSON files, so adding deAPI takes one file and your API key. The chat models are served through the OpenAI-compatible endpoint at https://oai.deapi.ai/v1. The steps below were checked with goose 1.61 and qwen3.8-flash, in a chat and with a tool call.

Prerequisites


1. Add the provider file

Save the file below as deapi.json in goose’s custom_providers directory:
deapi.json
The current list of chat models and their context sizes is always in GET https://oai.deapi.ai/v1/models. See Chat completions.

2. Set your API key

In goose Desktop you can instead open Settings → Models → Configure providers, select deAPI and paste the key there. goose then keeps it in its keychain.

3. Start a session

To make deAPI the default, set GOOSE_PROVIDER=deapi and GOOSE_MODEL=qwen3.8-flash, or choose them in goose configure.

Choosing a model

  • qwen3.8-flash is a fast, low-cost default for everyday agent work.
  • qwen3.8-max and kimi-k3 suit long, multi-step tasks.
  • Every model supports tool calling, which goose uses for its extensions.
These models reason before they answer, and reasoning tokens are billed as output tokens. For prices and per-model details, see Chat completions.
To let goose show what a session cost, add input_token_cost and output_token_cost (USD per token) to each model in the file. The values are in pricing on each model in GET /v1/models.

Troubleshooting