Skip to main content

OpenCode

Add writer-0.1 as a provider in opencode.json, set NOTRA_LABS_API_KEY in your environment, then pick notra-labs/writer-0.1 in /models:
opencode.json
The config gives OpenCode the full context and output limits; the gateway applies those limits to JSON and streamed responses alike. OpenCode compacts the conversation history before it fills the context window. In a project where you need to keep the entire history up to the API’s limit, set "compaction": { "auto": false } in that project’s configuration.

Reply after a tool call

After reading a tool result, writer-0.1 may call another tool even when it has enough information to answer. In OpenCode, end the prompt with an explicit instruction such as “After you read the file, reply in chat with the changelog.” If your own client knows the tool work is done, send the full conversation and tool results with tool_choice: "none" on the final request. This works with Chat Completions and Responses. Leave tools available on turns that may need another call.

Add writer-0.1 to your app with an agent

In the console, click Connect agent and copy the prompt. Paste it into Claude Code, Cursor, OpenCode or another coding agent. It tells the agent to read the API reference for agents, use the OpenAI SDK with the base URL, the model and the NOTRA_LABS_API_KEY environment variable, retry model_starting, and add one example call you can run.

Docs for agents

  • has the whole Platform API in one Markdown file: quickstart, models, parameters, errors, cold starts and rate limits. Point agents here first.
  • is the OpenAPI 3.1 document, for SDK generators and API clients.
  • Every page of these docs is also available as Markdown: add .md to its URL, or use the menu at the top of the page to copy it or open it in ChatGPT, Claude or Cursor.

AI SDK and models.json

usenotra.com/models.json lists writer-0.1 with its limits and prices in the models.dev provider format, for tools that read model metadata from there. For the AI SDK, use @ai-sdk/openai-compatible as in the quickstart.
Last modified on December 5, 2026