Claude Code with Ollama or OpenRouter: what Anthropic supports


Claude Code with Ollama or OpenRouter: what Anthropic supports
Two variables point it anywhere. Which models stay supported, and which are an experiment. Plus: what it commits to git.  ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌
WotAI

Claude Code with Ollama or OpenRouter: what Anthropic supports

Hey Reader,

Twelve reads this week, and most cover the parts of Claude Code you touch every day.

First, pointing Claude Code at Ollama, OpenRouter or your company's gateway, and what Anthropic supports when you do. Then two on keeping it in check: what it commits to git, and what rewind undoes inside a session. Then the CLI and VS Code guides last week's P.S. promised, and Code Mode, an experimental way for Claude to make many tool calls in one step. Six more at the end.

Claude Code with Ollama, OpenRouter or a gateway: two variables, and one dependable path

Claude Code with other models: Ollama, OpenRouter and LLM gateways

Claude Code talks to whatever answers at ANTHROPIC_BASE_URL, so two variables point it at your organization's LLM gateway, at OpenRouter or at Ollama: that base URL, and a credential in ANTHROPIC_AUTH_TOKEN. Know the limits first. Anthropic doesn't support routing Claude Code to non-Claude models through any gateway, OpenRouter guarantees it only with the Anthropic first-party provider, and Ollama says hosted web search and advanced tool controls aren't fully supported. So the dependable use is Claude models through a gateway or OpenRouter. Open models through Ollama are an experiment you run on your own terms, and /status shows which route a session is on.

Set up your route →

Claude Code and git: what it commits, and how to keep it in check

Claude Code and git: what it commits, and how to keep it in check

Claude Code runs git through its Bash tool, the way you would. Read-only git commands run without asking; git commit and git push ask first in Manual mode unless a permission rule allows them. Its commits carry a Co-Authored-By trailer naming the model, and its pull requests a "Generated with Claude Code" line, and the attribution setting changes or hides both. Three habits keep it in check: allow and deny rules for the git commands you care about, a commit before any large task, and a review of every pull request it opens.

Keep it in check →

Claude Code rewind: undo inside a session, and what it misses

Claude Code rewind: undo edits with checkpoints, and what they miss

Claude Code saves a checkpoint of your code before every prompt that starts a turn. Run /rewind (or /undo), or press Esc twice on an empty prompt, pick the prompt to go back to, and restore the code, the conversation or both. You can also summarize from that point instead of throwing it away. Checkpoints cover only the edits Claude's file editing tools make. A file only a shell command changed, an edit you made outside Claude Code and most subagent edits aren't covered, so keep committing with git.

See what rewind restores →

Claude Code CLI: the handful of things you'll type every day

Claude Code CLI: the commands, flags and shortcuts you'll use every day

You need only a few things to work in the CLI every day. Run claude in your project to start, claude -c to pick up where you left off, and claude -p "query" to run it from a script; claude -n names a session so /resume finds it later. Inside a session, type / for commands, @ to mention a file and ! to run a shell command. Shift+Tab changes the permission mode, and Esc twice rewinds.

See the daily set →

Claude Code in VS Code: the extension, the terminal, or both

Claude Code in VS Code: the extension or the terminal, and how to set up both

There are two ways to run Claude Code in VS Code, and they share one engine. The extension gives you a chat panel with inline diffs you accept or reject, a plan you can comment on, and @-mentions of your selection. Running claude in the integrated terminal keeps the full CLI, and with the extension installed, diffs still open in the editor. The extension lacks three things: the ! shell shortcut, tab completion and the full set of commands and skills. Both use the same settings file and conversation history, so you can switch mid-task. It needs VS Code 1.94.0 or later and a paid Claude plan or a Console account, with no API key.

Set up both →

Claude Code Code Mode: many tool calls in one step

Claude Code Code Mode: what it changes and when to turn it on

With Code Mode on, Claude stops asking for tool calls one at a time. It writes a piece of JavaScript that makes the calls, and Claude Code runs it in your session: commands run in parallel, one result feeds the next, and only the output Claude needs comes back. It suits tasks with many related tool calls, like a change repeated across many files or a search whose results need filtering. It's experimental, off by default, and may change or go away in any release. It needs Claude Code 2.1.323 or later in a terminal session, a session started in Code Mode resumes only in Code Mode, and in auto mode the classifier reviews the code rather than each call.

See when to turn it on →

Also this week

Four more for daily use. The statusline runs a script you choose at the bottom of the session, uses no API tokens, and /statusline can write the script for you. Slash commands groups the built-ins by when you need them and shows how a skill in .claude/skills/ becomes your own command. Resume covers claude -c, claude -r and the /resume picker, and the launch flags you have to pass again. Keyboard shortcuts picks the dozen worth learning, plus vim mode and your own bindings.

And two for setup. Output styles explains the four built-ins, Proactive, Concise, Explanatory and Learning, and how to write your own. Claude Code on Windows compares native Windows with WSL, and explains why sandboxing needs WSL 2.


Reply and tell me: what's the one command or shortcut you'd tell a new Claude Code user to learn first? I read every reply.

– Alex

Come build with us

Follow WotAI: LinkedIn  ·  YouTube  ·  TikTok
You are receiving this because you subscribed to the WotAI newsletter. Unsubscribe

WotAI · AI Automation that Actually Ships

wotai.co

WotAI · 440 N. Barranca Ave., Unit 3777, Covina, CA 91723

WotAI

If you're building with Claude Code, n8n, or AI agents in production, this is the email I'd want. Weekly recap of what shipped, what broke, and how I'm running it. Specific over vague. Replies welcome.

Read more from WotAI

Switching models won't fix a Claude Code session limit Which limit you hit decides what works. Plus: Claude Code vs Cursor, and why a long session costs more. Switching models won't fix a Claude Code session limit Hey Reader, Happy Thanksgiving to everyone who celebrated yesterday. Today's Black Friday, so your inbox is full of deals. There are none in this one, just nine reads from the week. Two are about running out: which Claude Code limit you've hit and what fixes it, and why a long...

Claude Code's claude -p has no spend cap until you set one The four settings a headless run needs. Plus: permission rules check deny, then ask, then allow. Claude Code's claude -p has no spend cap until you set one Hey Reader, Six reads this week. Two are about letting Claude Code run without you: the five ways to do it, and the four settings a claude -p script needs. Two are about keeping it in bounds on a team: permission rules and MCP servers. Then pull request review, and when to route...

Claude Fable 5.2 costs twice Opus 5.5, with one exception Cache reads cost the same on both. Plus: Claude Code put account emails in User-Agent headers. Claude Fable 5.2 costs twice Opus 5.5, with one exception Hey Reader, Six reads this week. Two are news: a new model with a new price list, and a Claude Code bug that sent account emails where they shouldn't go. The other four are setup: driving a session from your phone, which connectors to turn on, what each plan buys, and hooks that block....