Docs

Set up your agent.

Almost every AI coding tool connects to NaN with the same two values: the cluster’s base URL and your API key. What changes from one to the next is where you write them.

FieldValue
Base URLhttps://api.nan.builders/v1
API keyyours, it starts with sk-

Every page in this section has the same shape: what you need, the exact configuration with the file path, how to check that it works, and the known issues.

Pick your tool

Yours is not here? If it accepts an OpenAI base URL and an API key, it works. Copy the two values from the table above and paste the model id exactly as it appears in Choose your model.

Shortcuts and extras

Why almost all of them work

NaN exposes an OpenAI-compatible API. That means the routes, the request fields and the shape of the response are the ones these tools already expect, so as far as they are concerned the cluster is indistinguishable from OpenAI except for the address they call.

The exception is Claude Code, which does not speak that format but Anthropic’s. It is not a credentials problem: they are two different protocols. That is why its page explains the two paths there are.

Which model to put

Almost all of these tools ask you for a model id on top of the base URL and the key. For agent work, the sensible order is:

  1. glm5.3 if you have the premium tier. It is the one built for long coding sessions.
  2. glm5.3-flash if you do not. Same 1M token context and a wide quota.
  3. deepseek-v4-flash for everything else.

The full list, with quotas and modalities, is in Choose your model.

Careful with the context you declare

Several of these tools let you type the model’s context window by hand. Set a number higher than the real one and the agent will fill the conversation up to a point where the model starts rejecting requests. Set a lower one and it will only compact earlier than needed. When in doubt, stay short.

Documentation in Markdown, to hand to an agent

Any page of this documentation can be read without the HTML around it, by adding the API prefix:

  • https://nan.builders/api/docs/getting-started.md
  • https://nan.builders/api/docs/choose-a-model.md
  • https://nan.builders/api/docs/manifest.json lists every page with its content hash

That is what to hand an agent when you want it to read the documentation instead of guessing.

nan.builders © 2026
Copied to clipboard