Setup guide · OpenAI compatible

How to use Continue with the BangunWeb OpenAI compatible API

Continue is an open source coding assistant for VS Code and JetBrains. Add the model to config.yaml, then pick it in the chat box.

About 4 minutes Tested live against router.bangunweb.com on 25 November 2026.

The three values you need

Base URL (OpenAI compatible)
https://router.bangunweb.com/v1
API key
bwr_live_YOUR_KEY
Model
bw-focus

Sign in and create an API key to have the blocks below filled in automatically. Until then you will see the example bwr_live_YOUR_KEY.

Get an API key →

Step by step

  1. Install Continue

    In VS Code open Extensions, search for "Continue" and click Install. For JetBrains, install it from the Marketplace.

  2. Open the config file

    In the Continue panel click the model picker or gear icon, then Open config. The file lives at ~/.continue/config.yaml (Windows: %USERPROFILE%\.continue\config.yaml).

  3. Paste the BangunWeb models

    Replace or extend the models section with the block below. Save the file.

    ~/.continue/config.yaml
    # ~/.continue/config.yaml
    name: BangunWeb
    version: 1.0.0
    schema: v1
    models:
      - name: BangunWeb bw-focus
        provider: openai
        model: bw-focus
        apiBase: https://router.bangunweb.com/v1
        apiKey: bwr_live_YOUR_KEY
        roles: [chat, edit, apply]
        capabilities: [tool_use]
      - name: BangunWeb bw-swift
        provider: openai
        model: bw-swift
        apiBase: https://router.bangunweb.com/v1
        apiKey: bwr_live_YOUR_KEY
        roles: [chat, edit]
        capabilities: [tool_use]
  4. Pick the model

    In the Continue chat box pick "BangunWeb bw-focus". Agent mode can use tools because capabilities: [tool_use] is set.

We do not recommend BangunWeb models for autocomplete. Autocomplete sends a request on every keystroke pause and every request has a base cost, so your balance drains quickly.

Test your key first (30 seconds)

If this command replies with text, your key and model are correct. Any remaining problem is in the tool settings.

curl · OpenAI compatible
curl https://router.bangunweb.com/v1/chat/completions \
  -H "Authorization: Bearer bwr_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"bw-focus","messages":[{"role":"user","content":"Halo"}]}'

Recommended models for coding

Pulled from the live catalog: only models that are currently active. Mode names (bw-...) never change and automatically fail over to a backup model when the main one has trouble.

ModelBest for Estimated cost per stepSuccess, 7 days
Focus (DeepSeek V4 Pro)mode bw-focus Everyday coding agent. The main pick.reads images $0.0028 99.9%
DeepSeek V4 Pro deepseek-v4-pro The model behind Focus, if you want a fixed model.reads images $0.0028 99.9%
Swift (DeepSeek V4.1 Flash)mode bw-swift Light tasks, summaries, titles, the small model.reads images $0.00078 100%
GPT 6 Sol gpt-6-sol Complex logic and code review.reads images $0.0013 100%
Apex (Claude Opus 5.5)mode bw-apex The hardest tasks. Much higher cost per request.reads images $0.080 99.3%
Claude Sonnet 5.5 claude-sonnet-5.5 Claude directly. Use sparingly.reads images $0.052 100%

One step = one typical coding-agent request (about 20 thousand tokens in and 1 thousand out) at the Saver package rate. A coding agent can send dozens of steps for a single task.

Troubleshooting

The model does not appear in the picker

Usually a YAML indentation issue. Make sure each model starts with "- name:" indented by two spaces, then reload the VS Code window.

Agent mode cannot edit files

Make sure the capabilities: [tool_use] line is present on the selected model.

401 or "Unknown API key"

The key was copied wrong or has been revoked. Copy it again from the Keys tab in the AI dashboard (it starts with bwr_live_), with no leading or trailing spaces.

402 or "Not enough token balance"

Your token balance is empty or too low for one request on that model. Top up tokens, or switch to a cheaper model such as bw-swift.

"Model not available"

The model name must exactly match the list at GET https://router.bangunweb.com/v1/models (lowercase, with dots and hyphens). Do not add prefixes such as openai/.

404 Not Found

For OpenAI-style tools the base URL must end with /v1. For Anthropic-style tools (Claude Code) the base URL has NO /v1.

Empty or cut-off answers

Reasoning models spend part of the tokens on thinking. Raise max tokens (at least 1024) or remove the limit in the tool settings.

Feels slow

Coding agents send large contexts. Use bw-swift for light tasks, and start a new task when the conversation gets very long.

Guides for other tools

Start using AI Router in your tools

One key for DeepSeek, GPT, Claude and dozens of other models. Pay per token, no subscription. Sign up free, get 2M test tokens.