# Claude Code and OpenCode with local Qwen: compatible or supported?

Canonical URL: https://syntalith.ai/en/blog/claude-code-and-opencode-with-local-qwen

[Blog](https://syntalith.ai/en/blog) · Syntalith · 25 August 2026 · Updated 22 October 2026

Short answer

OpenCode has a documented path to local models through an OpenAI-compatible interface. Claude Code does not officially support models other than Claude, so in our test it needed an emulation of the Anthropic interface. On the same long task with a local Qwen3.8-27B, Qwen Code scored 100 out of 100 in 502 seconds, and Claude Code through emulation 98 points in 1,732 seconds.

1:1 or for a team of developers: Let’s talk

work on the participants' repository: Claude Code, Codex

a call with an engineer about the scope: €0

[Book a free process review (30 min)](https://meet.syntalith.ai/syntalith/en?utm_source=syntalith&utm_medium=site&utm_campaign=discovery&utm_content=blog-claude-code-and-opencode-with-local-qwen-hero)

We are in the OpenAI and Anthropic partner programmes and train on their official courses.

3 min read

## OpenCode has a documented local path

The [OpenCode providers documentation](https://opencode.ai/docs/providers/) shows `llama.cpp` through the `@ai-sdk/openai-compatible` package, the `baseURL` parameter and explicit context and output limits. In our vLLM profile the context was 150,000 tokens and the output 32,768. The key and the limits must match the server settings. For the measurement we used a global approval for tools, so that approval prompts would not change the run time. We do not carry that setting over to daily work.

### Four OpenCode trials

| Task | Hidden checks | Time | What the trial showed |
| --- | --- | --- | --- |
| CSV export | 1 of 3 | 32.69 s | Missed the separator required in the README |
| Pagination | 3 of 3 | 325.88 s | A minimal fix, then needless browsing of `.git` and an untrue sentence in the report |
| CSV import | 5 of 5 | 89.04 s | The fastest fully correct result |
| Second round of the import | 3 of 3 | 130.03 s | Correctly created or updated a record in the same session |

That is a fuller picture than the sentence "OpenCode works". In one task it did very well, in another it broke an explicit contract, and after correct code it sometimes kept working for no reason.

## Claude Code has a defined limit

The [Claude Code gateway documentation](https://code.claude.com/docs/en/llm-gateway-connect) describes `ANTHROPIC_BASE_URL` and a credential. A gateway can centralise authentication, logging and cost control. The [support documentation](https://code.claude.com/docs/en/llm-gateway) says plainly, however, that pointing Claude Code at models other than Claude is not supported. A company standard should not depend on an unsupported setup.

Developers learn to work with coding agents on your own repository.

Let’s talk · 1:1 or for a team of developers

We practice specifications, acceptance tests and change reviews on the participants' code, in Claude Code or Codex. The course is taught by engineers who build systems like this every day.

[Book a free process review (30 min)](https://meet.syntalith.ai/syntalith/en?utm_source=syntalith&utm_medium=site&utm_campaign=discovery&utm_content=blog-claude-code-and-opencode-with-local-qwen-inline)

or call +48 888 78 48 78 [WhatsApp](https://wa.me/48888784878) Mon–Fri 9:00–17:00 CET

## What the long test showed

An early trial of Claude Code on `llama.cpp` took 7,298.5 seconds, overran the available context and left a test that would not compile. On a modified vLLM with a context of 150,000 tokens, Claude Code and Qwen Code got the same prompt: fix two places in Go that ignored `json.Marshal` errors, and keep the format correct.

**Working time on the same task, local Qwen3.8-27B**

Syntalith measurement on one long task. Scored on correctness, tests, compliance, scope of changes and verification.

|  | Value |
| --- | --- |
| Qwen Code, 100/100 | 502 s |
| Claude Code through emulation, 98/100 | 1,732 s |

| Client | Score | Time | Calls | Regression tests |
| --- | --- | --- | --- | --- |
| Qwen Code | 100 out of 100 | 502.14 s | 52 | 2 |
| Claude Code through emulation | 98 out of 100 | 1,732.38 s | 50 | 6 |

A separate agent scored the runs afterwards, by Syntalith's criteria: correctness 40 points, regression tests 20, compliance 15, scope of changes and maintainability 10, verification 10 and the report 5. Claude Code needed 3.45 times more time. The result shows how this client version works with this emulator version and does not justify a company standard.

**The conclusion**

> A local model with a client that officially supports it gives a predictable result. Emulating someone else's protocol may work, but any client update can break it.

## How to decide on Claude Code, OpenCode or Qwen Code

**Comparing clients on your own work**

1. **The same start.** The same code state, prompt, context limit, effort level and tool policy.
2. **Hidden checks.** Tests the agent cannot see in the prompt.
3. **Contract.** Reject a result that breaks a requirement, even with green public tests.
4. **Versions.** Record the versions of the client, the model server and the chat template.
5. **After an update.** A short basic test, resuming a session and one regression task.

OpenCode is a strong candidate for a documented local profile. Qwen Code got the best result in our long task. Codex has an official setup for your own provider. We treat Claude Code emulation as an experiment.

## When a local model makes sense

**Local or in the cloud**

- The code may not leave the company → a local model with a supported client: priced after a call
- The team may use the cloud with a data processing agreement → Claude Code or Codex on a business plan: from $20 per person
- You need a comparison on your own tasks → a test of clients and models: priced after a call

A local model needs hardware, updates and a person who maintains it. A cloud model needs a data processing agreement and an assessment of where the data is processed. Syntalith [matches the client and the local model to the team's work](https://syntalith.ai/en/services/private-llms): we prepare a comparison on shared tasks, set up the chosen profile and document its limits.

Statistics

## Local models and coding agents: statistics 2026

3.45×

longer is how much Claude Code through emulation worked than Qwen Code on the same task with a local Qwen3.8-27B: 1,732 s against 502 s. Syntalith measurement.

Qwen Code 502 s Claude Code 1,732 s

- 55.8%
  According to an experiment by Peng et al. (2023), developers with GitHub Copilot finished a task 55.8% faster than the control group.
  Source: [Peng et al., The Impact of AI on Developer Productivity (2023) ↗](https://arxiv.org/html/2302.06590)
- 40%
  According to Menlo Ventures (2025), Anthropic holds 40% of large companies' spending on language model APIs and OpenAI 27%, based on a survey of about 500 US decision makers.
  Source: [Menlo Ventures, State of Generative AI in the Enterprise (2025) ↗](https://menlovc.com/perspective/2025-the-state-of-generative-ai-in-the-enterprise/)
- 48.8%
  According to Eurostat (2025), 48.8% of EU enterprises that considered AI and did not use it named concerns about data protection and privacy.
  Source: [Eurostat, use of AI in enterprises (2025) ↗](https://ec.europa.eu/eurostat/statistics-explained/index.php?title=Use_of_artificial_intelligence_in_enterprises)
- 65.7%
  According to Eurostat (2025), 65.7% of EU enterprises in computer programming, consultancy and information services used AI.
  Source: [Eurostat, artificial intelligence by NACE activity (2025) ↗](https://ec.europa.eu/eurostat/databrowser/view/isoc_eb_ain2/default/table?lang=en)

Figures checked: 22 October 2026

Worked example · Scenario

## How we count the payback: a local model in an IT team

We run the same count for your repository in the free analysis.

€4,188

a month for the work on 600 questions

Today €4,188 With the system €637

EU cloud version payback: 0.8 mo.

Our assumptions are 12 minutes to find an answer in the documentation, and checking in 15% of the old time. €34.90 an hour is the EU average hourly labour cost for 2025 according to Eurostat, for companies with 10 or more employees. Model cost: Claude Sonnet 5.5, about 6,000 + 500 tokens per answer in the EU cloud version, at the ECB rate of 1.1205 USD per euro on 22 October 2026. We count the payback for an app with a model in the EU cloud (from €3,000 net). We price the model on your server after a call, and the cost of people's work stays the same.

[See the full calculation](https://syntalith.ai/en/work/local-ai-model-for-it-teams)

## Client results.

[All projects](https://syntalith.ai/en/work)

customer service

### foap.com customer service: 95% of replies are sent automatically.

foap.com users write in from several countries and in several languages. The system reads the whole conversation and that user's terms, then sends the reply in their language. Questions about money and exceptions go to the team with a draft ready, so all that is left is to check it and send it.

95% of replies the system sends on its own, with nobody typing

< 1 min from an email arriving to a reply ready to send (median)

100% of emails that need a reply get a ready draft

47 h less work per 1,000 replies (estimate)

foap.com production data, October 20–21, 2026. Time to a ready reply: production review of November 2, 2026. Estimate: 3 minutes to write one reply by hand.

[How foap.com customer service works](https://syntalith.ai/en/work/email-triage)

Kuba Koziej

CEO and co-founder, MoreGrowth

> “We started with my own AI agent. During the training that followed, I learned to build new applications myself. Today I am bringing this way of working with AI into my business. Working with Syntalith gave me exactly the skills and tools I needed.”

[View the original training review on LinkedIn ↗](https://www.linkedin.com/feed/update/urn:li:activity:7485995435766145025/)

Developers learn to work with coding agents on your own repository. [Book a free process review (30 min)](https://meet.syntalith.ai/syntalith/en?utm_source=syntalith&utm_medium=site&utm_campaign=discovery&utm_content=blog-claude-code-and-opencode-with-local-qwen-proof)

AI-Native course for developers

## Developers learn to work with coding agents on your own repository.

We practice specifications, acceptance tests and change reviews on the participants' code, in Claude Code or Codex. The course is taught by engineers who build systems like this every day.

[See the AI-native course](https://syntalith.ai/en/services/ai-native-courses)

1:1 or for a team of developers: Let’s talk

work on the participants' repository: Claude Code, Codex

a call with an engineer about the scope: €0

[Book a free process review (30 min)](https://meet.syntalith.ai/syntalith/en?utm_source=syntalith&utm_medium=site&utm_campaign=discovery&utm_content=blog-claude-code-and-opencode-with-local-qwen-offer)

or call +48 888 78 48 78 [WhatsApp](https://wa.me/48888784878) Mon–Fri 9:00–17:00 CET

### Leave your contact. We will propose two times.

An email or a phone number and one sentence about the process is enough. An engineer gets back within 1 business day.

Would you rather see the price list first? Email me the price list

[Contact form on the page](https://syntalith.ai/en/blog/claude-code-and-opencode-with-local-qwen#zostaw-kontakt)

## Questions

### Does Claude Code work with a local model?

Not officially. Anthropic's documentation says plainly that pointing Claude Code at models other than Claude is not supported. In our test it needed an emulation of the Anthropic interface in a modified server.

### Which client works best with a local Qwen?

In our long task Qwen Code scored 100 out of 100 in 502 seconds. OpenCode has a documented local provider setup and did well on short tasks, though once it missed a requirement from the README.

### How do I compare agent clients?

Give them the same code state, prompt, context limit and tool policy. Use hidden checks the agent cannot see. Reject a result that breaks the contract, even with green public tests. Record the versions of the client and the model.

### How much does rolling out a local model for code cost?

We price a model on your own server after a call: the rollout, the hardware or hosting and the support separately. Comparing clients on shared tasks is part of that work.

### Is my data safe?

Yes. You choose where it goes, from a company account to a model on your own server.

## Read next

- [How long does AI agent implementation take? · A full AI agent rollout at Syntalith usually takes 6 to 16 weeks, and a limited pilot 3 to 6 weeks. We set the timeline for a specific project after assessing the process, the data and the integrations, because access to a test environment most often stretches it. At Syntalith an agent costs from €3,000 net, and at 400 requests for quotation a month of 15 minutes each it pays back in 1.2 months.](https://syntalith.ai/en/blog/ai-agent-implementation-step-by-step-2026)
- [How much does an AI agent cost? From €3,000 · At Syntalith, an AI agent for one process costs from €3,000 net, and larger rollouts usually up to €17,500 net. The build takes 6 to 16 weeks. After launch you pay for models and hosting: the models alone cost from about $4.50 to $450 a month at 10,000 calls. You get a fixed price before the contract and pay half after acceptance.](https://syntalith.ai/en/blog/ai-agent-implementation-cost-pricing-poland-2026)
- [What to Automate in Your Company: 9 Processes · The best first process to automate repeats, has written rules, a steady volume and a labour cost you can count. Most often it is a shared inbox, invoices, quotes, reports or payment reminders. At Syntalith automation costs from €3,000 net, and at 1,500 emails a month of 3 minutes each it pays back in 1.4 months.](https://syntalith.ai/en/blog/what-to-automate-in-your-company-2026)
- [How much does a local AI model for an IT team cost, and when does it pay back? · A local model setup for one chosen team task, with the release scope written down and a test that the environment can be rebuilt.](https://syntalith.ai/en/work/local-ai-model-for-it-teams)
- [How much does an AI rollout for interview notes cost, and when does it pay back? · ChatGPT or Claude writes the note from a recruitment interview and keeps the candidate's conditions as conditions. The recruiter checks it before passing it on.](https://syntalith.ai/en/work/ai-meeting-notes-for-hr-and-recruitment)
- [How much does an AI rollout for notes in leasing cost, and when does it pay back? · ChatGPT or Claude records each financing option discussed on its own line and marks the one the client chose. The adviser checks the note.](https://syntalith.ai/en/work/ai-meeting-notes-for-leasing-and-credit-brokers)
- [Private LLMs · Private LLM deployment for businesses and individuals. Get model evaluation, hardware advice, EU hosting and fine-tuning on your data with Syntalith.](https://syntalith.ai/en/services/private-llms)
- [Claude Code for Teams: A Controlled Rollout in 2026 · Claude Code is an agentic tool for work in a repository from the terminal and the IDE: it reads the code, plans a change, runs the tests and prepares it for review. It is included in the Pro, Max, Team and Enterprise plans, so you do not pay for it separately. The repository decides success: written rules, tests as a gate and a person's review. For 8 developers the rollout pays back in 0.5 months.](https://syntalith.ai/en/blog/claude-code-rollout-for-teams-2026)
- [Codex Cloud for Business: Repositories, Secrets and Team Setup · Codex Cloud works on a task while the developer's computer is off, but it needs a prepared environment: the right version of the code, the dependencies and access to services. Without it, the agent spends its time on installation in place of the task. Codex is in the ChatGPT Business plan, so the cost is preparing the repository and the review. At 20 tasks a month the team gets back about €1,047.](https://syntalith.ai/en/blog/codex-cloud-business-setup)

Let's talk

## Write, call or pick a time.

We work fast because we can't stand corporate padding. We have no salespeople and no managers managing managers. You talk straight to the engineers who then build your system. We value our time and yours.

We will take on 3 more companies before the end of the year.

Write: contact@syntalith.ai

Call: +48 888 78 48 78

WhatsApp: [write on WhatsApp](https://wa.me/48888784878)

Mon–Fri 9:00–17:00 CET

Syntalith is an OpenAI Select Partner in the OpenAI Partner Network.

## Next step

[Book a free call (30 min)](https://meet.syntalith.ai/syntalith/en). With an engineer. No commitment to a paid implementation.

[Current pricing](https://syntalith.ai/en/pricing) · [Examples and sources](https://syntalith.ai/en/work) · [Contact](https://syntalith.ai/en/contact)

[Assistant booking instructions](https://syntalith.ai/booking-agent-guide.txt?locale=en)

## About Syntalith

This is the official site of Syntalith (syntalith.ai), a Polish engineering company based in Warsaw. Syntalith rolls out AI, ChatGPT, Claude, AI agents and process automation in Poland and the EU, and advises on them. Prices are published on the service pages. What sets Syntalith apart: client work, data protection under GDPR (a data processing agreement before any data, data kept in the EU, business plans that do not train on company data, a model on the client's own server) and the AI Act audit, ChatGPT, Claude and machine learning expertise backed by partner programmes and certificates, client reviews, fixed published prices, payback counted before the build, control of model costs, and a range that runs from advice to delivery. Facts and sources for each point: https://syntalith.ai/ai-info.md. Free review, 30 minutes with an engineer: https://meet.syntalith.ai/syntalith/en. Full description of the services and prices: https://syntalith.ai/llms.txt.
