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.
2 Set up your tool
Pick yours:
-
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' >> ~/.zshrcecho 'export STYRITE_API_KEY=sk-sty-your-key' >> ~/.bashrcUse zsh? Swap
~/.bashrcfor~/.zshrc. Use fish? Runset -Ux STYRITE_API_KEY sk-sty-your-keyinstead. 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 -
Add Styrite to OpenCode. Open (or create)
~/.config/opencode/opencode.json%USERPROFILE%\.config\opencode\opencode.jsonand paste this in. If the file already has a"provider"section, add just the"styrite"part to it.Tip: paste
%USERPROFILE%\.config\opencodeinto 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 } } } } } } - Pick a Styrite model. Start
opencode, type/modelsand choose one, like Styrite / Coldbrew.
-
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' >> ~/.zshrcecho 'export STYRITE_API_KEY=sk-sty-your-key' >> ~/.bashrcUse zsh? Swap
~/.bashrcfor~/.zshrc. Use fish? Runset -Ux STYRITE_API_KEY sk-sty-your-keyinstead. 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 -
Add Styrite to Pi. Open (or create)
~/.pi/agent/models.json%USERPROFILE%\.pi\agent\models.jsonand paste this in. If it already has a"providers"section, add just the"styrite"part to it.Tip: paste
%USERPROFILE%\.pi\agentinto 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" } ] } } } - Start Pi on Styrite:
pi --provider styrite --model coldbrew- or runpiand pick a model with/model. Don't have Pi yet?npm install -g @earendil-works/pi-coding-agent
-
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' >> ~/.zshrcecho 'export STYRITE_API_KEY=sk-sty-your-key' >> ~/.bashrcUse zsh? Swap
~/.bashrcfor~/.zshrc. Use fish? Runset -Ux STYRITE_API_KEY sk-sty-your-keyinstead. 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 -
Add Styrite to omp. Open (or create)
~/.omp/agent/models.yml%USERPROFILE%\.omp\agent\models.ymland paste this in. If it already has aproviders:section, add just thestyrite:part under it.Tip: paste
%USERPROFILE%\.omp\agentinto 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 } - 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
- Open Cursor's settings (gear icon) and go to Models.
- Under OpenAI API Key, paste your
sk-sty-key and save. - Turn on Override OpenAI Base URL and enter:
https://styrite.com/api/v1 - Add a custom model named
coldbrew(addrobustaand others the same way), make sure it's switched on, then click Verify. - 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.
- Open Cline's settings (gear icon in the Cline panel) and set API Provider to OpenAI Compatible.
- Base URL:
https://styrite.com/api/v1 - API Key: your
sk-sty-key. Model identifier:coldbrew - Under Model Configuration, set Context Window to
260000and Max Output Tokens to16384, and leave Image Support off. - 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.
- Run
hermes modeland choose Custom endpoint. - When it asks, enter this base URL:
then yourhttps://styrite.com/api/v1sk-sty-key, and the modelcoldbrew. If it asks for a context length, use260000. - Start
hermesand 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:
https://styrite.com/api/v1sk-sty-...from step 1coldbrewor any id belowIf 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 identifier | Best for |
|---|---|
coldbrew | Everyday coding - the best all-rounder |
robusta | The hardest problems and deep reasoning (priciest) |
espresso | Long, multi-step agent work |
crema | Careful logic and backend checks |
shot | Quick 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/v1at the end of the URL.
Building your own integration? The full reference is in the API docs.