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

# Get Started

> Configure LinkModel chat models in coding agents such as OpenCode, Claude Code, and Codex.

Use LinkModel as the model provider behind coding agents that can call OpenAI-compatible, Anthropic-compatible, or Responses-compatible chat endpoints.

## Guides

<CardGroup cols={2}>
  <Card title="OpenCode" icon="terminal" href="/agent-integrations-opencode">
    Configure LinkModel as an OpenAI-compatible provider in OpenCode.
  </Card>

  <Card title="Claude Code" icon="message" href="/agent-integrations-claude-code">
    Route Claude Code Anthropic-format requests through LinkModel.
  </Card>

  <Card title="Codex" icon="code" href="/agent-integrations-codex">
    Configure Codex to call GPT-series LinkModel models with the Responses API wire protocol.
  </Card>

  <Card title="Troubleshooting" icon="circle-question" href="/agent-integrations-troubleshooting">
    Diagnose auth, model selection, endpoint, and tool-calling issues.
  </Card>
</CardGroup>

## Endpoint Selection

| Agent       | Recommended endpoint     | Model guidance                                                                            |
| ----------- | ------------------------ | ----------------------------------------------------------------------------------------- |
| OpenCode    | `POST /chat/completions` | Use any LinkModel chat model exposed on the [Models](/models) page.                       |
| Claude Code | `POST /messages`         | Prefer Anthropic-family models first, then test other chat models for tool compatibility. |
| Codex       | `POST /responses`        | Use GPT-series models only, such as `gpt-5.3-codex`, `gpt-5.6-sol`, or `gpt-5`.           |

## Base URL

All agent integrations use this base URL:

```text theme={null}
https://api.linkmodel.ai/v1
```

Set the model to one of the supported chat model names from [Models](/models).

<Note>
  Coding agents send tool/function-calling fields so they can edit files, run shell commands, and continue multi-step work. If a request fails because of unsupported tool fields, switch to a different model or use the endpoint most closely matching the agent's native protocol.
</Note>

## Related API References

* [OpenAI-compatible Chat Completions](/api-reference/chat/openai-chat-completions)
* [Anthropic-compatible Messages](/api-reference/chat/anthropic-messages)
* [OpenAI-compatible Responses](/api-reference/chat/openai-responses)
