Abstract illustration of an AI agent orchestrating tools and subagents

Building a Custom Agent with the Claude Agent SDK

A practical, code-first walkthrough of the Claude Agent SDK: custom tools, MCP servers, and subagents — the same engine that powers Claude Code, in your own app.

June 26, 2026 · 6 min · 1177 words · Rajesh
A dark cinematic illustration of a glowing terminal monitor with code, a server rack, and a network of AI model nodes connected by neon lines — representing Claude Code talking to local and cloud model endpoints.

Claude Code with Local Models and OpenRouter: The Complete Guide

Claude Code is the most agentic coding CLI Anthropic ships — but it does not have to talk to Anthropic. Because Claude Code speaks the standard Anthropic Messages API, you can point it at any compatible endpoint with a single environment variable. That means OpenRouter, your local Ollama server, a private LiteLLM proxy, or a self-hosted model behind your own router all work without forking the source. This guide walks through the three setup paths, which models actually deliver usable tool-use at each tier, what breaks, and when you should stop and switch back to the official API. ...

June 16, 2026 · 13 min · 2671 words · Rajesh