Skip to main content
WorkBuddy/CodeBuddy can add custom models through a local models.json file. Nusabase Chat Completions can be used as an OpenAI-compatible model endpoint.

When To Use This

  • You want a desktop or editor-based agent coding assistant.
  • You need models.json to pin team model choices.
  • You want to configure lite or reasoning model relationships for CodeBuddy.

Prerequisites

  • WorkBuddy/CodeBuddy is installed and signed in.
  • You have a Nusabase API key: sk-....
  • Your machine can reach https://api.nusabasedigital.com.
  • The example model qwen3.5-flash appears in the current pricing docs. Use /v1/models as the source of truth.

Config File Location

User-level config:
On Windows this is usually:
Project-level config:
Project-level availableModels overrides the user-level list instead of merging with it. Do not commit project configs that contain a real API key.

Write models.json

The CodeBuddy official example expects apiKey to contain the actual key value, not an environment variable name.
Field notes:

Restart And Select Model

  1. Quit WorkBuddy/CodeBuddy completely.
  2. Reopen the app so it reads the new models.json.
  3. Select Nusabase qwen3.5-flash in the model picker.

Verify API

Troubleshooting

Use Models and Pricing as the source of truth for model names, context length, and price.

References