> ## Documentation Index
> Fetch the complete documentation index at: https://docs.valkyrieapp.azumo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect a model

> Use a Valkyrie-hosted model as the LLM inside your tools, agents, and SDKs.

This section is about **using a Valkyrie-hosted model for inference**, pointing a
client at a model you've [deployed](https://docs.valkyrieapp.azumo.com/guides/deploy-model.md) so it answers your prompts.

> [!NOTE]
>
> Want to **operate Valkyrie from an AI agent** instead, deploy models, stop them,
> read logs, manage jobs? That's a different integration: the **[MCP server](https://docs.valkyrieapp.azumo.com/mcp/overview.md)**.
> Connecting a model (this section) and connecting the MCP server (that section) are
> separate things and don't depend on each other.

## Two compatible protocols

Valkyrie exposes your deployed model over two protocols, so most clients work
out of the box:

> [card] OpenAI-compatible
>
> The Chat Completions API. Works with the OpenAI SDKs and any OpenAI-compatible
> client, Cursor, LibreChat, editors, custom apps, and more.

> [card] Anthropic-compatible
>
> Valkyrie can also speak the Anthropic Messages protocol, so Claude Code can point
> at a Valkyrie-hosted model.

## What you'll need

* A **ready deployment** (or an [alias](https://docs.valkyrieapp.azumo.com/guides/aliases.md) pointing at one).
* A **deployment API key** (`vk_dep_`) with access to that model, see
  [API Keys](https://docs.valkyrieapp.azumo.com/dashboard/api-keys.md).
* Your **API base URL** (e.g. `https://valkyrie-back.azumo.com`).

## Pick your client

> [card] [Claude Code](https://docs.valkyrieapp.azumo.com/connect/claude-code.md)
>
> Point your coding agent's model at a Valkyrie deployment (Anthropic protocol).

> [card] [Cursor](https://docs.valkyrieapp.azumo.com/connect/cursor.md)
>
> Add a Valkyrie model as a custom OpenAI-compatible model.

> [card] [Opencode](https://docs.valkyrieapp.azumo.com/connect/opencode.md)
>
> Add Valkyrie as a custom OpenAI-compatible provider.

> [card] [Pi](https://docs.valkyrieapp.azumo.com/connect/pi.md)
>
> Configure Valkyrie over the OpenAI or Anthropic protocol.

> [card] [Qwen Code](https://docs.valkyrieapp.azumo.com/connect/qwen-code.md)
>
> Point the Qwen Code CLI at a Valkyrie deployment.

> [card] [OpenAI-compatible clients](https://docs.valkyrieapp.azumo.com/connect/openai-compatible.md)
>
> The generic recipe for any OpenAI-compatible SDK or app.

> [!NOTE]
>
> Using **Gemini CLI**? It can't target Valkyrie (Google-only auth). See
> [Gemini CLI](https://docs.valkyrieapp.azumo.com/connect/gemini-cli.md) for why, and use [Qwen Code](https://docs.valkyrieapp.azumo.com/connect/qwen-code.md)
> instead.

> [!NOTE]
>
> A self-hosted open model is not a frontier model. Behavior, tool-use quality, and
> context length depend entirely on the model you deployed, size the deployment for
> the workload you expect.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.