Skip to content

How-to guide

On this page

Connect a provider

Nawa talks to a language model on a server: a card on the LLM tab of Settings holding an address and a key. Above the cards, New chats start with says which server and model a new chat begins with. Existing chats keep their own choice.

Open Settings (the gear at the bottom of the left pane, Edit → Settings… in the title bar, or Ctrl+,) and choose LLM. The Servers list shows one card per provider and one per local server. Click a card to open or close it. Opening, editing or connecting a server does not change what new chats use.

Settings, LLM: what new chats start with, the server cards, and the Fast decisions cards below

A cloud provider

The cards Anthropic, OpenAI, OpenRouter, Google Gemini, xAI and Groq each hold a key and a connection test.

  1. Click the provider's name to open its card. Its status reads Key missing until a key is saved.
  2. Paste the API key issued by the provider named on the card. For example, the OpenRouter card needs an OpenRouter key, even when you choose a DeepSeek model. Nawa adds the authentication header automatically; enter only the key. The key is stored in Nawa's encrypted account storage; the page keeps only a reference to it, rather than returning the saved key. Entering a new key still sends it to the settings endpoint, and the server uses it to authenticate with the provider.
  3. Press Connect beside the API key. Nawa saves the connection and lists the provider's models; the card then reads Connected with the number of models. OpenRouter also checks the key through its authenticated key endpoint, because its model list is public. A refused key shows the provider's error.
  4. Under New chats start with, choose the provider in Server, then a Model. Long model lists have a search box at the top; type part of the name. If new chats had no usable server before, the provider you just connected is already chosen.
  5. Set Reasoning if the model offers it. Temperature and Compact at (%) are under More options in the same card; blank uses the displayed default, initially 80%.

That one model serves the chat and its coder. After you choose a model, Nawa detects its context window and capabilities.

A hosted OpenAI-compatible API

A Local server card also accepts hosted OpenAI-compatible APIs. It does not require you to install a local server or a router.

For a key issued directly by DeepSeek:

  1. Click Add a local server and name it DeepSeek.
  2. Choose LM Studio / OpenAI-compatible server, set Server URL to https://api.deepseek.com, and enter your DeepSeek key.
  3. Press Connect.
  4. Under New chats start with, choose DeepSeek in Server and a model it returned. Leave Coder on Same as the chat, then start a new chat.

An OpenRouter key and a DeepSeek key belong to different services. Use the address and key from the same provider. Provider charges and model availability are managed by that provider. See DeepSeek's API setup guide for its current endpoint and model details.

A local server

  1. Click Local server to open the card, and give it a name that tells your servers apart.
  2. Choose the server type (vLLM, or LM Studio and any OpenAI-compatible server), enter the server URL, for example http://127.0.0.1:8000/v1, and a key if the server requires one.
  3. Press Connect beside the API key. A local server that does not require a key can still pass this test. Changing the URL or key clears what was known until the server connects again.
  4. Under New chats start with, choose the server and its main model. Open More options to give the coder its own model when your server hosts several, such as a larger model for coding; it defaults to Same as the chat.

Chat titles, context notes and the screening of web and tool content use the chat's model, with its reasoning turned off.

Add a local server creates and opens another card without changing what new chats use; Remove this server removes the card you are on, as long as one local card remains. Changing Server under New chats start with affects new chats only. Existing chats keep their own model; use the brain button beside their message box to change it.

An image server (optional)

Open Settings → Image Generation. Its provider cards support OpenRouter, OpenAI, Together AI, Google Gemini, fal.ai, Replicate, Black Forest Labs, Ideogram, Stability AI, Recraft, and Custom / vLLM Fleet. Changing the image connection does not change the chat model. Existing Fleet servers and their selected model are preserved.

  1. Open a provider card and enter its API key. For your own server, enter its URL and a key only if required.
  2. Press Connect beside the API key to load model suggestions. Choose a model from the dropdown, or use Enter a custom model ID…. OpenRouter and fal.ai have public catalogues: loading one does not establish that the key can generate images.
  3. Set optional defaults supported by that provider. Request size, aspect ratio and resolution in your prompt. Generate test image sends a sample prompt, displays the result, and may incur a provider charge. Testing leaves the active image connection and chat setup unchanged.
  4. Select the connection with its circle and enable the switch at the top. Add connection keeps additional accounts or servers saved. Removing a connection leaves other cards unchanged.

See Image Generation settings for provider-specific generation and editing support.

Ask normally, for example, "Create an image of a blue paper boat on calm water." Or type @image (available in the mention menu) to explicitly request image generation. The model can specify size, steps, seed, image count, format and a transparent background when the server supports them. The generated files are saved under images/ in the chat's workspace and displayed in the answer.

To edit, follow up with a request such as "Make the boat red and keep everything else the same." Nawa sends the referenced image to the editing endpoint rather than recreating it from a description. You can also attach an image or combine several references. Each edit saves a new file, preserving the originals. Edits use the server's reference aspect-ratio default unless a size is requested. Images appear as smaller previews in answers; click one to enlarge it.

Turning the section off removes the image tool from new turns without deleting saved servers. If you explicitly request @image while it is off, Nawa can inspect that setting and explain what needs enabling. Plan mode does not create or edit images.

A decision model (optional)

Below the servers, Fast decisions holds an optional decision model that answers typed questions. Main and Coder can ask general decision questions, generated apps can use it through Nawa, and discovery tools can rank search results, skills, or plugin catalogue entries. Browser actions use the main model directly, regardless of this setting.

Two cards are offered, chosen with their circles:

  • Jev by TypeSafe — a key of its own, or Through OpenRouter using the key saved on the OpenRouter card.
  • Laya — a server URL (the default is a local fleet at http://127.0.0.1:8080) and a key only if that server asks for one.

Open a card by its name and press its Connect; its status turns to Ready · laya (or the model Jev reports). Select its circle to use that connection, then switch the section on with the switch in its heading. Opening or testing a card leaves the selection unchanged. A card can be tested while the switch is off — its status then says Off · server saved — but nothing consults it until the switch is on.

What the decision model contributes, and what it does not, is described in Decisions beside the LLM and in the settings reference.

Check what a chat is using

The card new chats use is marked New chats. The brain button beside the message box opens the open chat's menu: the servers you have connected, the chosen server's models, and the selected model's reasoning levels. Changing New chats start with in Settings affects new chats; use an existing chat's menu to change that chat. A running turn keeps the choices captured at its start.