---
title: "AI coding on your own models: every app and model pairing — Aventail™ Guides"
url: https://aventail.co.uk/guides/ai-coding-on-your-own-models
description: "Run Claude Code, OpenCode and Codex on models you choose. A table of every pairing guide: the app, the model source, local or cloud, and a link to the setup."
lang: en-GB
---

Skip to content

Aventail™ investigation into UK government AI dependence featured in Computer Weekly. Read the story: https://aventail.co.uk/newsroom/computer-weekly-uk-government-ai-dependency

All guides (https://aventail.co.uk/guides)

# AI coding on your own models: every app and model pairing

16 November 2026 5 min read

Run Claude Code, OpenCode and Codex on models you choose. A table of every pairing guide: the app, the model source, local or cloud, and a link to the setup.

Claude Code, OpenCode and Codex can all run on a model you choose. The model can sit on your own machine through Ollama, LM Studio or Aventail ™ Link, or with another provider through its API. This page lists every pairing guide, says where the model runs, and links to the setup.

Local means the model runs on hardware you control. Cloud means your prompts and code go to that provider's servers under its terms. Checked on 15 November 2026.

| App | Model source | Local or cloud | Guide |
| --- | --- | --- | --- |
| Claude Code | Ollama | Local. Ollama also offers cloud models | Claude Code + Ollama: https://aventail.co.uk/guides/claude-code-ollama |
| Claude Code | LM Studio | Local | Claude Code + LM Studio |
| Claude Code | Aventail ™ Link | Local, another machine, or an approved provider, set by rule | Claude Code with a local model: https://aventail.co.uk/guides/claude-code-with-aventail-connect |
| Claude Desktop | Aventail ™ Link | Local, another machine, or an approved provider, set by rule | Claude Desktop with a local model |
| OpenCode | Ollama | Local | OpenCode + Ollama: https://aventail.co.uk/guides/opencode-ollama |
| OpenCode | LM Studio | Local | OpenCode + LM Studio |
| OpenCode | Aventail ™ Link | Local, another machine, or an approved provider, set by rule | OpenCode with a local model: https://aventail.co.uk/guides/opencode-with-aventail-connect |
| Codex | Ollama | Local | Codex + Ollama: https://aventail.co.uk/guides/codex-ollama |
| Claude Code | OpenRouter | Cloud | Claude Code + OpenRouter: https://aventail.co.uk/guides/claude-code-openrouter |
| Claude Code | DeepSeek API | Cloud | Claude Code + DeepSeek: https://aventail.co.uk/guides/claude-code-deepseek |
| Claude Code | Z.ai GLM | Cloud | Claude Code + GLM |
| Claude Code | Moonshot Kimi API | Cloud | Claude Code + Kimi |
| Claude Code | MiniMax API | Cloud | Claude Code + MiniMax |
| Claude Code | Google Gemini | Cloud | Claude Code + Gemini |
| OpenCode | Google Gemini | Cloud | OpenCode + Gemini |
| OpenCode | OpenRouter | Cloud | OpenCode + OpenRouter |
| OpenCode | DeepSeek API | Cloud | OpenCode + DeepSeek |

## How the pairings work

Claude Code talks to any endpoint that speaks Anthropic's Messages format. Ollama and LM Studio expose one on localhost. OpenRouter, DeepSeek, Z.ai and Moonshot expose one on their own servers. You change the base URL, and Claude Code treats the other model as its endpoint. Anthropic states that it does not support routing Claude Code to non-Claude models through any gateway, so a Claude Code update can break a pairing.

OpenCode is built to switch providers. Its configuration lists local runtimes and cloud providers side by side. Codex reaches a local model through Ollama with `ollama launch codex`.

## Which pairing to pick

- **Code must stay on your machines:** use a Local row, and check that the base URL is localhost.
- **You want a larger model than your hardware holds:** use a Cloud row, and read that provider's data terms first.
- **A team needs both, with a record of where requests ran:** use an Aventail ™ Link row.

## Choose a model, a tool and a team setup

- Best local LLMs for coding (https://aventail.co.uk/guides/best-local-llms-for-coding): ten current models by memory size, with licence, context and a dated benchmark.
- Local AI for a development team (https://aventail.co.uk/guides/local-ai-for-development-teams): laptops, a shared server or a routed mix, with sizing numbers.
- OpenCode vs Claude Code (https://aventail.co.uk/guides/opencode-vs-claude-code): which coding tool suits your team.
- Route local models and cloud APIs (https://aventail.co.uk/guides/route-local-models-and-cloud-apis): rules, fallback order and how to check where a request ran.

## The same pairings for a team

The guides above set up one developer's machine. A team lead also needs to know which machine sent which request where, and needs a setup that does not live in each developer's shell profile.

Aventail ™ Connect configures Claude Desktop, Claude Code, OpenCode and Codex to send model requests through Aventail ™ Link, the inference engine and gateway on each machine. Routing rules are set in Aventail ™ Control and evaluated on the device. A request can run on the device, on another machine running Link, or with an approved provider through your own account. If no destination is permitted, the request fails with an error. Hosted Control receives device and routing events, not prompts or responses. The Free plan covers three connected devices.

## Frequently asked questions

**Can Claude Code run on models other than Claude?**
Yes, on any endpoint that speaks Anthropic's Messages format. Anthropic does not support it.

**Which pairings keep my code on my machine?**
The Local rows, when the base URL is localhost and no cloud model or fallback is configured.

**Is a cloud model in Claude Code my own model?**
You choose it, and the provider still processes your prompts under its terms.

**Do I need an Anthropic account for a local model?**
No. Aventail ™ 's Connect path for Claude Code does not need one, and the Ollama path uses a placeholder token.

**Which local model should I start with?**
Qwen3.8-27B on a 32 GB machine. The full list is in best local LLMs for coding (https://aventail.co.uk/guides/best-local-llms-for-coding).

## Related guides

- Ollama vs: https://aventail.co.uk/guides/ollama-vs-aventail
  Aventail: https://aventail.co.uk/guides/ollama-vs-aventail
  ™: https://aventail.co.uk/guides/ollama-vs-aventail
- LM Studio vs: https://aventail.co.uk/guides/lm-studio-vs-aventail
  Aventail: https://aventail.co.uk/guides/lm-studio-vs-aventail
  ™: https://aventail.co.uk/guides/lm-studio-vs-aventail
- Claude Code security for enterprises: https://aventail.co.uk/guides/claude-code-security-enterprise
- Claude Code alternatives

## Sources

1. Ollama, Claude Code, OpenCode and Codex integrations: https://docs.ollama.com/integrations/claude-code, https://docs.ollama.com/integrations/opencode, https://docs.ollama.com/integrations/codex
2. Ollama, Anthropic compatibility: https://docs.ollama.com/api/anthropic-compatibility
3. LM Studio, Claude Code: https://lmstudio.ai/docs/integrations/claude-code
4. OpenCode, Providers: https://opencode.ai/docs/providers
5. OpenRouter, Claude Code integration: https://openrouter.ai/docs/guides/guides/claude-code-integration
6. DeepSeek, Using the Anthropic API: https://api-docs.deepseek.com/guides/anthropic_api
7. Z.ai, Claude Code: https://docs.z.ai/devpack/tool/claude
8. Kimi API Platform, Use Kimi in Claude Code: https://platform.kimi.ai/docs/guide/claude-code-kimi
9. MiniMax, Claude Code with the M Plan: https://platform.minimax.io/docs/m-plan/claude-code
10. Anthropic, Other LLM gateways: https://code.claude.com/docs/en/llm-gateway
11. Aventail ™, Connect overview: https://docs.aventail.co.uk/docs/connect/overview
12. Aventail ™, Routing: https://docs.aventail.co.uk/docs/fleet/routing
13. Aventail ™, Pricing: https://aventail.co.uk/#pricing

All sources were read on 15 November 2026.

We use optional cookies and tracking to identify visiting companies, load our contact form, measure Google Ads download clicks and understand page use with PostHog on our homepage, Connect and How it works pages, Ollama and LM Studio comparison guides and campaign pages. Cookie policy (https://aventail.co.uk/cookies)

## Structured data

```json
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "Organization",
      "@id": "https://aventail.co.uk/#organization",
      "name": "Aventail",
      "alternateName": "Locai",
      "legalName": "Loc.ai Ltd",
      "description": "Aventail, formerly Locai, was founded in 2026 and is a graduate of Google AI First. It gives enterprises the full AI stack to adopt AI securely: a built-in inference engine, deployment of supported models across approved hardware, on-device classification and policy-based routing between those machines and approved external AI providers, central management and an employee workspace. Organisations use Aventail to put approved information to work while controlling where inference requests run.",
      "url": "https://aventail.co.uk/",
      "logo": "https://aventail.co.uk/apple-touch-icon.png",
      "email": "hello@aventail.co.uk",
      "hasCredential": [
        {
          "@type": "EducationalOccupationalCredential",
          "name": "Cyber Essentials",
          "credentialCategory": "certification",
          "url": "https://aventail.co.uk/trust#cyber-essentials"
        }
      ]
    },
    {
      "@type": "Article",
      "@id": "https://aventail.co.uk/guides/ai-coding-on-your-own-models#page",
      "url": "https://aventail.co.uk/guides/ai-coding-on-your-own-models",
      "name": "AI coding on your own models: every app and model pairing",
      "description": "Run Claude Code, OpenCode and Codex on models you choose. A table of every pairing guide: the app, the model source, local or cloud, and a link to the setup.",
      "publisher": {
        "@id": "https://aventail.co.uk/#organization"
      },
      "headline": "AI coding on your own models: every app and model pairing",
      "datePublished": "2026-11-16",
      "dateModified": "2026-11-16T18:48:12.650806+00:00",
      "image": "https://aventail-ai-platform.lovable.app/images/share/og-home-v7.jpg",
      "author": {
        "@id": "https://aventail.co.uk/#organization"
      }
    },
    {
      "@type": "BreadcrumbList",
      "@id": "https://aventail.co.uk/guides/ai-coding-on-your-own-models#breadcrumb",
      "itemListElement": [
        {
          "@type": "ListItem",
          "position": 1,
          "name": "Home",
          "item": "https://aventail.co.uk/"
        },
        {
          "@type": "ListItem",
          "position": 2,
          "name": "Guides",
          "item": "https://aventail.co.uk/guides"
        },
        {
          "@type": "ListItem",
          "position": 3,
          "name": "AI coding on your own models: every app and model pairing",
          "item": "https://aventail.co.uk/guides/ai-coding-on-your-own-models"
        }
      ]
    }
  ]
}
```