From aa972924a7b727f55adb392faffe5eb20ac3b394 Mon Sep 17 00:00:00 2001 From: Tobias Fenster Date: Sat, 28 Feb 2026 18:28:15 +0100 Subject: [PATCH 1/6] add Claude Code --- .../ai/model-runner/ide-integrations.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/content/manuals/ai/model-runner/ide-integrations.md b/content/manuals/ai/model-runner/ide-integrations.md index b4d726f4e580..4cde9fe0ee04 100644 --- a/content/manuals/ai/model-runner/ide-integrations.md +++ b/content/manuals/ai/model-runner/ide-integrations.md @@ -258,6 +258,24 @@ print(response.text) You can find more details in [this Docker Blog post](https://www.docker.com/blog/opencode-docker-model-runner-private-ai-coding/) +## Claude Code + +[Claude Code](https://claude.com/product/claude-code) is [Anthropic's](https://www.anthropic.com/) command-line tool for agentic coding. It lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows through natural language commands. + +### Configuration + +1. Install Claude Code (see [docs](https://code.claude.com/docs/en/quickstart#step-1-install-claude-code)) +2. Use the `ANTHROPIC_BASE_URL` environment varialbe to point Claude Code at DMR. On Mac or Linux you can do this e.g. like this if you want to use the `gpt-oss:32k` model: + ``` + ANTHROPIC_BASE_URL=http://localhost:12434 claude --model gpt-oss:32k + ``` + On Windows (PowerShell) you can do it like this: + ``` + $env:ANTHROPIC_BASE_URL="http://localhost:12434" + claude --model gpt-oss:32k + ``` +You can find more details in [this Docker Blog post](https://www.docker.com/blog/run-claude-code-locally-docker-model-runner/) + ## Common issues ### "Connection refused" errors From 6e097cb3bec89efc1df38296362228cc5dacd698 Mon Sep 17 00:00:00 2001 From: Tobias Fenster Date: Sat, 28 Feb 2026 18:31:42 +0100 Subject: [PATCH 2/6] add language --- content/manuals/ai/model-runner/ide-integrations.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/manuals/ai/model-runner/ide-integrations.md b/content/manuals/ai/model-runner/ide-integrations.md index 4cde9fe0ee04..bef8f9373f9f 100644 --- a/content/manuals/ai/model-runner/ide-integrations.md +++ b/content/manuals/ai/model-runner/ide-integrations.md @@ -266,11 +266,11 @@ You can find more details in [this Docker Blog post](https://www.docker.com/blog 1. Install Claude Code (see [docs](https://code.claude.com/docs/en/quickstart#step-1-install-claude-code)) 2. Use the `ANTHROPIC_BASE_URL` environment varialbe to point Claude Code at DMR. On Mac or Linux you can do this e.g. like this if you want to use the `gpt-oss:32k` model: - ``` + ```bash ANTHROPIC_BASE_URL=http://localhost:12434 claude --model gpt-oss:32k ``` On Windows (PowerShell) you can do it like this: - ``` + ```powershell $env:ANTHROPIC_BASE_URL="http://localhost:12434" claude --model gpt-oss:32k ``` From caa8626ac935ba62557be61cda88f23834bf4629 Mon Sep 17 00:00:00 2001 From: Tobias Fenster Date: Sat, 28 Feb 2026 18:32:58 +0100 Subject: [PATCH 3/6] fix reviewdog flags --- content/manuals/ai/model-runner/ide-integrations.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/manuals/ai/model-runner/ide-integrations.md b/content/manuals/ai/model-runner/ide-integrations.md index bef8f9373f9f..9fba06612ead 100644 --- a/content/manuals/ai/model-runner/ide-integrations.md +++ b/content/manuals/ai/model-runner/ide-integrations.md @@ -260,12 +260,12 @@ You can find more details in [this Docker Blog post](https://www.docker.com/blog ## Claude Code -[Claude Code](https://claude.com/product/claude-code) is [Anthropic's](https://www.anthropic.com/) command-line tool for agentic coding. It lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows through natural language commands. +[Claude Code](https://claude.com/product/claude-code) is [Anthropic's](https://www.anthropic.com/) command-line tool for agentic coding. It lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling Git workflows through natural language commands. ### Configuration 1. Install Claude Code (see [docs](https://code.claude.com/docs/en/quickstart#step-1-install-claude-code)) -2. Use the `ANTHROPIC_BASE_URL` environment varialbe to point Claude Code at DMR. On Mac or Linux you can do this e.g. like this if you want to use the `gpt-oss:32k` model: +2. Use the `ANTHROPIC_BASE_URL` environment variable to point Claude Code at DMR. On Mac or Linux you can do this e.g. like this if you want to use the `gpt-oss:32k` model: ```bash ANTHROPIC_BASE_URL=http://localhost:12434 claude --model gpt-oss:32k ``` From a217ea36e7abfdfc93dd85d6237ae9c728259c62 Mon Sep 17 00:00:00 2001 From: Tobias Fenster Date: Mon, 2 Mar 2026 22:33:25 +0100 Subject: [PATCH 4/6] implement docker-agent suggestions --- content/manuals/ai/model-runner/ide-integrations.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/manuals/ai/model-runner/ide-integrations.md b/content/manuals/ai/model-runner/ide-integrations.md index 9fba06612ead..0a9556ee8787 100644 --- a/content/manuals/ai/model-runner/ide-integrations.md +++ b/content/manuals/ai/model-runner/ide-integrations.md @@ -260,12 +260,12 @@ You can find more details in [this Docker Blog post](https://www.docker.com/blog ## Claude Code -[Claude Code](https://claude.com/product/claude-code) is [Anthropic's](https://www.anthropic.com/) command-line tool for agentic coding. It lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling Git workflows through natural language commands. +[Claude Code](https://claude.com/product/claude-code) is [Anthropic's](https://www.anthropic.com/) command-line tool for agentic coding. It lives in your terminal, understands your codebase, and executes routine tasks, explains complex code, and handles Git workflows through natural language commands. ### Configuration 1. Install Claude Code (see [docs](https://code.claude.com/docs/en/quickstart#step-1-install-claude-code)) -2. Use the `ANTHROPIC_BASE_URL` environment variable to point Claude Code at DMR. On Mac or Linux you can do this e.g. like this if you want to use the `gpt-oss:32k` model: +2. Use the `ANTHROPIC_BASE_URL` environment variable to point Claude Code at DMR. On Mac or Linux, you can do this, for example if you want to use the `gpt-oss:32k` model: ```bash ANTHROPIC_BASE_URL=http://localhost:12434 claude --model gpt-oss:32k ``` From f74cfdb871225da8cf27782d90a2a157e150c038 Mon Sep 17 00:00:00 2001 From: Tobias Fenster Date: Thu, 12 Mar 2026 19:02:02 +0100 Subject: [PATCH 5/6] add notes on persistent env variable and different API --- content/manuals/ai/model-runner/ide-integrations.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/content/manuals/ai/model-runner/ide-integrations.md b/content/manuals/ai/model-runner/ide-integrations.md index 9fba06612ead..fa94e7227d5b 100644 --- a/content/manuals/ai/model-runner/ide-integrations.md +++ b/content/manuals/ai/model-runner/ide-integrations.md @@ -274,8 +274,21 @@ You can find more details in [this Docker Blog post](https://www.docker.com/blog $env:ANTHROPIC_BASE_URL="http://localhost:12434" claude --model gpt-oss:32k ``` + +> [!TIP] +> +> To avoid setting the variable each time, add it to your shell profile (`~/.bashrc`, `~/.zshrc`, or equivalent): +> +> ```shell +> export ANTHROPIC_BASE_URL=http://localhost:12434 +> ``` + You can find more details in [this Docker Blog post](https://www.docker.com/blog/run-claude-code-locally-docker-model-runner/) +> [!NOTE] +> +> While the other integrations on this page use the [OpenAI-compatible API](/ai/model-runner/api-reference/#openai-compatible-api), DMR also exposes a [Anthropic-compatible API](/ai/model-runner/api-reference/#anthropic-compatible-api) used here. + ## Common issues ### "Connection refused" errors From b45e088a8381cc6878d0ee4abdbd6ff08f15df2e Mon Sep 17 00:00:00 2001 From: Tobias Fenster Date: Thu, 12 Mar 2026 19:04:01 +0100 Subject: [PATCH 6/6] extend front matter --- content/manuals/ai/model-runner/ide-integrations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/manuals/ai/model-runner/ide-integrations.md b/content/manuals/ai/model-runner/ide-integrations.md index 88ffc0ecce34..1ce30084866d 100644 --- a/content/manuals/ai/model-runner/ide-integrations.md +++ b/content/manuals/ai/model-runner/ide-integrations.md @@ -2,7 +2,7 @@ title: IDE and tool integrations description: Configure popular AI coding assistants and tools to use Docker Model Runner as their backend. weight: 40 -keywords: Docker, ai, model runner, cline, continue, cursor, vscode, ide, integration, openai, ollama +keywords: Docker, ai, model runner, cline, continue, cursor, vscode, ide, integration, openai, ollama, claude, anthropic, claude-code --- Docker Model Runner can serve as a local backend for popular AI coding assistants