Add Bourse to the providers docs (OpenAI-compatible, works today)

Open Beginner friendly
#50,337 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
76/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Active
Domain
documentation

Research direction

Locate the providers documentation page and review how existing custom OpenAI-compatible providers are documented. Add Bourse with the supplied configuration, API URL, and notes about using @ai-sdk/openai-compatible and omitting /chat/completions from baseURL; done when the provider is listed with accurate setup guidance.

Written by the indexing model from the issue text.

Description

Feature hasn't been suggested before.
  • I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request

Bourse resells unused AI capacity from the providers at 11-58% under list price. It speaks the OpenAI Chat Completions format, so opencode already works with it today as a custom provider - no code change needed. This is a docs request, not an engineering one.

Working config:

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "bourse": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Bourse",
      "options": { "baseURL": "https://api.bourse.run/v1" },
      "models": { "claude-opus-5": {} }
    }
  }
}

Two notes that save support questions, since both caught me out:

  • Use @ai-sdk/openai-compatible, not @ai-sdk/openai. We serve /v1/chat/completions.
  • Do not put /chat/completions in the baseURL.

Coding agents are the heaviest token users, so the price gap shows up fast. Claude Opus 5 is 50% under Anthropic list, and the cheaper listings run to 58% off. The live catalogue and prices are at https://bourse.run - the table there is generated from a price feed, so it is current.

Catalogue and prices: https://bourse.run
API guide: https://bourse.run/api-guide

Opening this in case you want Bourse named on the providers docs page. Happy to send the PR myself if you would take one - just say where the page should live.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
Avg merge
7h 20m
Merged PRs (30d)
358

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from anomalyco/opencode

All issues in anomalyco/opencode

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.