Styrite Styrite
Desktop app Coding agents API Docs Privacy Policy Terms of Use Back to app

On this page

1. Get an API key 2. Set up your tool Which model? Good to know

Setup guide ยท about 2 minutes

Use Styrite in your coding agent

Plug Styrite into the agent or editor you already use - OpenCode, Pi, omp, Cursor, Cline or Hermes. Anything else that supports an "OpenAI-compatible" provider works too.

Shortcut: Styrite Desktop sets up OpenCode, Pi and omp for you in one click, with a backup and an undo button.

1 Get an API key

Create a key and copy it. It starts with sk-sty- and is only shown once, so keep it somewhere safe. Calls are billed from your credits, and Super members use their free weekly allowance first.

Create an API key

2 Set up your tool

Pick yours:

Commands for
detected
  1. Save your key as STYRITE_API_KEY, so it never sits in a config file. Put your real key in, run this, then open a new terminal:
    echo 'export STYRITE_API_KEY=sk-sty-your-key' >> ~/.zshrc
    echo 'export STYRITE_API_KEY=sk-sty-your-key' >> ~/.bashrc

    Use zsh? Swap ~/.bashrc for ~/.zshrc. Use fish? Run set -Ux STYRITE_API_KEY sk-sty-your-key instead. If you start the tool from an app launcher or desktop icon rather than a terminal, it won't see this variable: log out and back in, or paste the key straight into the config file below in place of the {env:STYRITE_API_KEY} part.

    setx STYRITE_API_KEY sk-sty-your-key
  2. Add Styrite to OpenCode. Open (or create) ~/.config/opencode/opencode.json%USERPROFILE%\.config\opencode\opencode.json and paste this in. If the file already has a "provider" section, add just the "styrite" part to it.

    Tip: paste %USERPROFILE%\.config\opencode into File Explorer's address bar to open the folder.

    {
      "$schema": "https://opencode.ai/config.json",
      "provider": {
        "styrite": {
          "npm": "@ai-sdk/openai-compatible",
          "name": "Styrite",
          "options": {
            "baseURL": "https://styrite.com/api/v1",
            "apiKey": "{env:STYRITE_API_KEY}"
          },
          "models": {
            "coldbrew": { "name": "Coldbrew", "limit": { "context": 260000, "output": 16384 } },
            "robusta": { "name": "Robusta", "limit": { "context": 1000000, "output": 16384 } },
            "espresso": { "name": "Espresso", "limit": { "context": 1000000, "output": 16384 } },
            "crema": { "name": "Crema", "limit": { "context": 131000, "output": 16384 } },
            "shot": { "name": "Shot", "limit": { "context": 256000, "output": 16384 } }
          }
        }
      }
    }
  3. Pick a Styrite model. Start opencode, type /models and choose one, like Styrite / Coldbrew.
  1. Save your key as STYRITE_API_KEY. Put your real key in, run this, then open a new terminal:
    echo 'export STYRITE_API_KEY=sk-sty-your-key' >> ~/.zshrc
    echo 'export STYRITE_API_KEY=sk-sty-your-key' >> ~/.bashrc

    Use zsh? Swap ~/.bashrc for ~/.zshrc. Use fish? Run set -Ux STYRITE_API_KEY sk-sty-your-key instead. If you start the tool from an app launcher or desktop icon rather than a terminal, it won't see this variable: log out and back in, or paste the key straight into the config file below in place of the {env:STYRITE_API_KEY} part.

    setx STYRITE_API_KEY sk-sty-your-key
  2. Add Styrite to Pi. Open (or create) ~/.pi/agent/models.json%USERPROFILE%\.pi\agent\models.json and paste this in. If it already has a "providers" section, add just the "styrite" part to it.

    Tip: paste %USERPROFILE%\.pi\agent into File Explorer's address bar to open the folder.

    {
      "providers": {
        "styrite": {
          "baseUrl": "https://styrite.com/api/v1",
          "api": "openai-completions",
          "apiKey": "$STYRITE_API_KEY",
          "models": [
            { "id": "coldbrew", "name": "Coldbrew" },
            { "id": "robusta", "name": "Robusta" },
            { "id": "espresso", "name": "Espresso" },
            { "id": "crema", "name": "Crema" },
            { "id": "shot", "name": "Shot" }
          ]
        }
      }
    }
  3. Start Pi on Styrite: pi --provider styrite --model coldbrew - or run pi and pick a model with /model. Don't have Pi yet? npm install -g @earendil-works/pi-coding-agent
  1. Save your key as STYRITE_API_KEY. Put your real key in, run this, then open a new terminal:
    echo 'export STYRITE_API_KEY=sk-sty-your-key' >> ~/.zshrc
    echo 'export STYRITE_API_KEY=sk-sty-your-key' >> ~/.bashrc

    Use zsh? Swap ~/.bashrc for ~/.zshrc. Use fish? Run set -Ux STYRITE_API_KEY sk-sty-your-key instead. If you start the tool from an app launcher or desktop icon rather than a terminal, it won't see this variable: log out and back in, or paste the key straight into the config file below in place of the {env:STYRITE_API_KEY} part.

    setx STYRITE_API_KEY sk-sty-your-key
  2. Add Styrite to omp. Open (or create) ~/.omp/agent/models.yml%USERPROFILE%\.omp\agent\models.yml and paste this in. If it already has a providers: section, add just the styrite: part under it.

    Tip: paste %USERPROFILE%\.omp\agent into File Explorer's address bar to open the folder.

    providers:
      styrite:
        baseUrl: https://styrite.com/api/v1
        apiKey: STYRITE_API_KEY
        api: openai-completions
        models:
          - { id: coldbrew, name: Coldbrew, input: [text], contextWindow: 260000, maxTokens: 16384 }
          - { id: robusta, name: Robusta, input: [text], contextWindow: 1000000, maxTokens: 16384 }
          - { id: espresso, name: Espresso, input: [text], contextWindow: 1000000, maxTokens: 16384 }
          - { id: crema, name: Crema, input: [text], contextWindow: 131000, maxTokens: 16384 }
          - { id: shot, name: Shot, input: [text], contextWindow: 256000, maxTokens: 16384 }
  3. Start omp on Styrite: omp --model styrite/coldbrew - or pick a model inside omp with /model. Don't have omp yet? curl -fsSL https://omp.sh/install | shirm https://omp.sh/install.ps1 | iex
  1. Open Cursor's settings (gear icon) and go to Models.
  2. Under OpenAI API Key, paste your sk-sty- key and save.
  3. Turn on Override OpenAI Base URL and enter:
    https://styrite.com/api/v1
  4. Add a custom model named coldbrew (add robusta and others the same way), make sure it's switched on, then click Verify.
  5. Choose coldbrew in the model menu of Chat or Agent.

The base URL override applies to every OpenAI model in Cursor, so switch off Cursor's built-in OpenAI models while you use Styrite. Tab autocomplete always runs on Cursor's own models.

  1. Open Cline's settings (gear icon in the Cline panel) and set API Provider to OpenAI Compatible.
  2. Base URL:
    https://styrite.com/api/v1
  3. API Key: your sk-sty- key. Model identifier: coldbrew
  4. Under Model Configuration, set Context Window to 260000 and Max Output Tokens to 16384, and leave Image Support off.
  5. Click Verify (or just send a message) and you're set.

Cline can't detect limits for custom providers, which is why step 4 matters - without it, replies can get cut short.

  1. Run hermes model and choose Custom endpoint.
  2. When it asks, enter this base URL:
    https://styrite.com/api/v1
    then your sk-sty- key, and the model coldbrew. If it asks for a context length, use 260000.
  3. Start hermes and you're on Styrite. Switch models later with /model custom:robusta.

Don't have Hermes Agent yet? curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bashiex (irm https://hermes-agent.nousresearch.com/install.ps1)

Look for a provider option called OpenAI Compatible, Custom OpenAI or Custom endpoint, and fill in:

Base URLhttps://styrite.com/api/v1
API keysk-sty-...from step 1
Modelcoldbrewor any id below

If the tool asks for limits, use the model's own context window (Coldbrew: 260,000 tokens, each model's size is listed by GET /api/v1/models) and a max output of 16,384. Turn image input off. Styrite supports streaming and tool calling, so agent modes work.

Which model?

Every tool above takes these ids. Not sure? Start with coldbrew.

Model identifierBest for
coldbrewEveryday coding - the best all-rounder
robustaThe hardest problems and deep reasoning (priciest)
espressoLong, multi-step agent work
cremaCareful logic and backend checks
shotQuick edits and small questions (fastest, cheapest)

Live prices per model are on the API docs.

Good to know

  • Billing: every step your agent takes is one API call, billed from your credits. A typical task is a handful of calls.
  • You can't overspend: a call never costs more than you have. On a low balance, replies get shorter, and a request too big to afford is refused with a clear message.
  • Safety net: give the key you use for an agent a spend limit on the API access page.
  • Text only: the models read text, so images an agent sends are skipped.
  • Not working? It's almost always a typo - the base URL, key and model identifier have to match exactly, including /api/v1 at the end of the URL.

Building your own integration? The full reference is in the API docs.