One hosted service. Four ways to use it.
Onyx is a service we host in AWS. You reach it with an API key: through the API, the Python and TypeScript SDKs, the web console, or the onyx CLI installed on your machine. Each of them lets you pick the model and the effort level.
In development The service addresses on this page do not answer yet. The software behind them runs on our own machines, and access is by request.
Messages in, code out.
A small HTTP API: send messages, get an answer, whole or streamed. Tool calls are read from the model's answer and accepted only when they name a tool you offered in the request.
POST /v1/messages— answers, with or without streaming, with toolsPOST /v1/messages/count_tokens— the size of a request before you send itPOST /v1/chat/completions— the same answers in the chat-completions request formatGET /v1/models— the models, their context length and effort levels
In development Base address: https://api.onyx.brevyn.io. Every request needs a key, sent in the x-api-key header; keys are stored only as hashes.
curl https://api.onyx.brevyn.io/v1/messages \ -H "x-api-key: $ONYX_API_KEY" \ -H "content-type: application/json" \ -d '{ "model": "onyx-medium", "effort": "medium", "max_tokens": 400, "messages": [{ "role": "user", "content": "A Terraform variable of type list(string) named subnets." }] }'
from onyx_sdk import Onyx client = Onyx(base_url="https://api.onyx.brevyn.io", api_key="onyx-sk-...") message = client.messages.create( model="onyx-medium", effort="medium", max_tokens=400, messages=[{ "role": "user", "content": "A Terraform variable of type list(string) named subnets.", }], ) print(message.text)
import { Onyx, textOf } from "onyx-sdk"; const client = new Onyx({ baseURL: "https://api.onyx.brevyn.io", apiKey: process.env.ONYX_API_KEY!, }); const message = await client.messages.create({ model: "onyx-medium", max_tokens: 400, messages: [{ role: "user", content: "A Terraform variable of type list(string) named subnets.", }], }); console.log(textOf(message));
Ask about code, in the browser or the terminal.
The chat is the simplest way to use Onyx: a conversation about code, with the model and the effort level of your choice. It runs as a page in the browser and as onyx chat in the terminal. Today it is a plain conversation; the capabilities marked Planned are what it is being built towards.
- Conversations. Several turns that keep their context, listed and kept in your browser.
- Readable answers. The model's plan folded above the answer, code blocks with their language and a copy button, tokens and time per answer.
- Model and effort. Chosen per conversation, changed at any point.
- In the terminal.
onyx chat, with/saveand/loadto keep and continue a conversation,/systemto set instructions,/modeland/effort.
- Skills. Packaged instructions the chat loads when a task needs them: how your team writes a module, cuts a release, names its resources.
- MCP servers. The chat connected to your own sources over the Model Context Protocol (MCP): repositories, tickets, documentation.
- Live previews. Generated code, diagrams and pages shown in a panel next to the conversation, with versions you can go back to.
- Attached files. A source file, a plan output or an error log dropped into the conversation.
- Code that is run. Answers checked by running them in a sandbox before you see them.
- Projects. Conversations grouped, with shared instructions and files.
- Web search. Current documentation and release notes, with the sources shown.
Skills and MCP servers already work in the Onyx CLI; in the chat they are planned.
An agent in your terminal that asks first.
Install onyx on your machine, give it your key, run it in a project and describe the change. The CLI works in your repository: it reads the files it needs, proposes edits as diffs, runs the commands you allow and keeps a task list you can see. The model is not on your machine; the CLI sends each request to the Onyx service, and to no third-party model provider.
› add versioning to the logs bucket ◆ I'll read main.tf first. ✓ Read main.tf 3 lines ┌─ permission ────────────────────────────────── │ Allow Edit main.tf (changes files) │ + resource "aws_s3_bucket_versioning" "logs" { │ + bucket = aws_s3_bucket.logs.bucket │ + versioning_configuration { │ + status = "Enabled" │ + } │ + } └─────────────────────────────────────────────── y yes · a always allow Edit · n no ›
An illustration of the interface, drawn from its real screens. The recorded run of this task is on the home page.
- Tools. Fourteen built in: read, write and edit files, search by name and by content, run shell commands (also in the background), keep a task list, fetch a web page, delegate to subagents.
- Permission modes. Ask for everything, accept edits, plan only, or run unattended in a sandbox; allow and deny rules per tool and per command.
- Subagents. Independent parts of a task go to subagents with their own context; several run at the same time and only their answers come back. Two types are built in, general and explore, and a project can define its own.
- Hooks. Your own checks at five moments: before and after a tool, when a prompt is sent, when the model stops, when a session starts. A failing
terraform validatekeeps the turn open until it is fixed. - MCP servers. External tools over MCP, as a local process or over HTTP.
- Skills and custom commands. Defined per project, in plain files.
- Memory. Instructions for the user, the project and a subdirectory, read in that order.
- Sessions. Saved, resumed and rewound:
/rewindundoes the last turns and restores the files they changed. Long sessions are compacted by rule before the context fills. - Pipelines.
onyx -p "…" --output-format jsonruns without a terminal.
- Background subagents. Subagents that report while the main agent goes on with other work.
- Project index. Search by meaning across a large repository, not only by text.
- Editor and CI integration. Onyx inside the editor, and as a ready-made step in a pipeline.
- Web search.
Built Built-in commands
| Command | What it does |
|---|---|
/help | list the commands |
/clear | start a new conversation |
/compact | shrink the conversation, keeping the current task |
/init | write the project's memory file from its layout |
/memory | show the memory files, or add a line |
/model | show or choose the model |
/effort | show or choose the effort level |
/config | show settings, or save one for the project |
/permissions | show or change the mode and the allow and deny rules |
/usage | tokens used in this session |
/status | project, session, model, effort, mode |
/resume | list saved sessions or resume one |
/rewind | undo the last turns and restore the changed files |
/agents | list the subagents |
/mcp | list the MCP servers and their tools |
/hooks | list the configured hooks |
/doctor | check the installation and the connection |
/exit | leave |
A line that starts with ! runs a shell command directly. Projects can add commands of their own.
Everything marked Built describes the tool, and is covered by tests on a scripted model. How well a model uses it is a separate question, described on the evaluation page; no result for the current model is published yet.
The parts around the model.
Workbench
Compose a request, choose the model and effort, see the plan and the answer, then copy the same request as curl, Python or TypeScript.
Keys, history, usage
Create and revoke API keys, look back at requests, and see tokens per key, per model and per effort level. In development at onyx.brevyn.io/console/.
Chat
A chat page for questions about code, with conversations kept in your browser. The same chat runs in the terminal as onyx chat. In development at onyx.brevyn.io.
Python SDK
A typed client for messages, streaming, tools, token counting and models, with runnable examples.
TypeScript SDK
The same surface, typed, with no dependencies. Runs in a recent Node directly from the source.
In your own AWS account
Deployment of Onyx in a customer's own AWS account is possible on request. It is not a standard offer and has no list price.
Onyx is not yet public.
The service, SDKs and CLI are working software, to be opened to early-access teams while the first fine-tune is trained. Nothing is on sale yet; the planned prices are on the models page.