Skip to main content

Connect a model

LibraOS Next needs one working agent before you start a chat. There are three ways to get one. You can combine them.

A new installation opens the Welcome page, Connect an agent you already use. To open it again later, go to Settings → About → Welcome page and choose Open.

An agent you already use​

The Welcome page checks Claude Code, Codex and opencode on this computer.

  • Installed and signed in: the agent is ready. Your subscription or key is used as it is, for example a Claude plan with Claude Code or a ChatGPT plan with Codex.
  • Not installed or not signed in: Install or Sign in opens a setup terminal. Review the command and press Enter to run it. Installing opencode from this page needs npm.
  • Off on this computer: Turn on enables it, and the app checks it again.

You don't need all three. Continue is available once any agent is ready.

LibraOS Gateway​

Choose Use an API key or gateway, then LibraOS Gateway and the agent to use it with. Paste a LibraOS API key and choose Connect. Use is billed to your LibraOS account, pay as you go; see Gateway and Credits & billing.

The key stays on the computer where you entered it. Disconnect removes it.

Connecting also adds Pi · LibraOS Gateway, which needs nothing else installed: the app ships Pi.

Any gateway URL (custom endpoint)​

Use this for a gateway that speaks the OpenAI or Anthropic API, with its own URL and key.

  1. Open Use an API key or gateway and choose Custom endpoint.

  2. Enter the gateway's URL, for example https://gateway.example.com/v1. The trailing /v1 is optional.

  3. Choose the format:

    FormatAgents it serves
    BothClaude Code, Codex, opencode and Pi, with one URL and key
    OpenAICodex, opencode and Pi
    AnthropicClaude Code and opencode

    Choose Both when the gateway serves both APIs.

  4. Paste the gateway's API key. It is required for Both and Anthropic.

  5. Save. The app reads the gateway's model list. If it can't, enter the Model ids yourself, as the gateway names them, for example anthropic/claude-sonnet-4-5 or openai/gpt-5.

If you saved one format and want the other, use the action below the form to add it to the same gateway.

To pick a model from that gateway, open the model picker in a chat and look for the gateway's name beside the model.

Check that it works​

Start a chat and send a short message. If the reply comes back, the connection works. If it fails, the error banner names which agent or gateway reported it; see Troubleshooting.