
Where Does Claude Actually Run? The Four Runner Options Explained
Where Does Claude Actually Run? The Four Runner Options Explained
November 29, 2026 | Repogenic | Intent-Driven Engineering
Claude Code isn’t limited to your laptop.
It can execute on your local machine, in Anthropic’s cloud, on infrastructure your organization controls, or inside a GitHub Actions workflow.
And there’s a fifth option: build your own execution environment using the Claude Agent SDK.
Understanding these choices is important because where an AI agent executes determines its access, security boundaries, operational responsibilities, and governance requirements.
But here’s the interesting part.
Your engineering intent doesn’t have to change just because your runner does.
First, What Is a Runner?
Most developers encounter Claude Code through a terminal.
They install it, open a repository, type claude, and start working.
But the terminal is only one possible execution environment.
Claude Code involves two distinct components:
The model: The intelligence performing reasoning, typically accessed through Anthropic’s API or a supported cloud model provider.
The runner: The environment where the agent executes commands, reads files, modifies code, invokes tools, and produces artifacts.
The model performs the reasoning. The runner provides the execution environment.
This distinction matters.
You can change where the agent executes without fundamentally changing what you want it to accomplish.
Let’s examine the four primary options.
Option 1: Local Execution — Your Own Machine
This is the familiar Claude Code experience.
You install Claude Code and run it in your terminal or supported development environment.
Your repository, development tools, commands, and generated files remain on your machine.
Why choose local execution?
It’s straightforward.
You have immediate access to your local development environment, including your IDE, compilers, databases, development servers, and debugging tools.
It’s particularly useful when you’re actively participating in the engineering process.
You can inspect changes, execute tests, review evidence, and guide the agent as necessary.
What’s the tradeoff?
Execution depends on your machine.
If the machine becomes unavailable, the local execution environment becomes unavailable.
You also assume responsibility for local credentials, tools, security, and environment configuration.
For an individual developer, this may be perfectly acceptable.
For an enterprise supporting hundreds of developers, consistency and governance become more challenging.
An interesting addition: Remote Control
Claude Code also supports Remote Control, allowing developers to interact with a session running on their own machine from another supported device.
The execution remains local even though the interaction is remote.
Best for: Individual development, interactive engineering, experimentation, and hands-on control.
Option 2: Anthropic Cloud — Claude Code on the Web
Now suppose you don’t want the execution tied to your laptop.
Anthropic offers cloud-hosted Claude Code sessions through its web experience.
Instead of executing commands locally, Claude runs the agent session inside an Anthropic-managed cloud environment.
You provide the task, repository access, and configuration.
Anthropic provides the execution infrastructure.
Why choose Anthropic Cloud?
The primary advantage is convenience.
You don’t need to provision or manage runner infrastructure.
You can initiate work remotely, run multiple sessions, and return to review results.
The session can continue executing after you close your browser.
This introduces an interesting operating model.
A developer could define the intended outcome, initiate execution, and return later to inspect the results and supporting evidence.
What’s the tradeoff?
Your code executes in infrastructure outside your organization’s directly managed environment.
Network connectivity, access to internal systems, credentials, and security policies require consideration.
For organizations with strict network isolation requirements, this may not be appropriate for every workload.
Availability and supported features also depend on the Claude subscription and organizational configuration.
Best for: Cloud-hosted development tasks, parallel execution, remote access, and teams that prefer managed infrastructure.
Option 3: Self-Hosted Execution — Your Infrastructure
This is where things become particularly interesting for enterprise engineering.
Anthropic supports self-hosted Claude Code environments.
The developer can interact with the Claude cloud experience while the actual agent execution takes place on infrastructure operated by the organization.
Think of it as separating the user experience from the execution location.
How does it work?
There are three primary components.
Environment: A configured execution destination that developers can select.
Runner: Software executing on infrastructure controlled by the organization.
Session: An individual Claude Code task assigned to that environment.
The runner establishes outbound connections to Anthropic’s services.
The organization controls the execution infrastructure, available tools, network access, and operational configuration.
Model inference remains a separate service, potentially provided through Anthropic or a supported cloud provider such as Amazon Bedrock.
Why choose self-hosted execution?
Three reasons stand out.
1. Internal network access
Agents can interact with approved internal systems, repositories, services, and development resources without requiring those systems to be publicly exposed.
2. Standardized tooling
Organizations can establish supported runtime images containing approved compilers, SDKs, development utilities, and integrations.
3. Operational control
Execution environments, local artifacts, infrastructure configuration, and access boundaries can be governed centrally.
However, self-hosting doesn’t mean all information remains inside your network. Prompts, responses, and tool results may still pass through the relevant Anthropic services, depending on configuration.
What’s the tradeoff?
Your organization owns the infrastructure responsibilities.
That includes provisioning, scaling, patching, security, network configuration, credentials, monitoring, and operational support.
Self-hosting provides greater control, but that control comes with additional responsibilities.
Best for: Enterprise development environments, controlled internal integrations, standardized tooling, and organizations requiring greater execution control.
Option 4: GitHub Actions — Claude Code in Your CI/CD Pipeline
Now consider a different execution model.
What if nobody needs to start Claude manually?
Instead, a repository event triggers an agent.
A pull request opens.
An issue receives a label.
A scheduled workflow executes.
A developer requests a review.
GitHub Actions launches Claude Code as part of the workflow.
Why is this important?
Because the agent becomes part of an established engineering process.
Rather than requiring a developer to initiate every interaction, the workflow responds to defined events.
For example:
A developer opens a pull request.
Claude analyzes the proposed changes.
It evaluates the repository instructions and applicable requirements.
It can perform configured tasks, suggest changes, and report results.
Existing branch protections, required checks, and human approval policies determine whether those changes can proceed.
The agent performs the work. The engineering workflow governs the outcome.
Where does GitHub Actions execute?
There are two common choices.
GitHub-hosted runners: GitHub provides the execution environment.
Self-hosted GitHub runners: Your organization provides and manages the execution environment.
This distinction is important.
GitHub Actions is the orchestration mechanism. The selected runner determines where the commands actually execute.
You can therefore combine event-driven automation with infrastructure controlled by your organization.
What’s the tradeoff?
You must design and maintain the workflows.
That includes triggers, permissions, secrets, model access, quality gates, failure handling, and cost management.
The advantage is integration with an engineering process teams already understand.
Best for: Pull request automation, repository maintenance, code review, quality gates, and event-driven engineering workflows.
The Fifth Option: Build Your Own with the Claude Agent SDK
The first four options cover many common engineering scenarios.
But what happens when your requirements don’t fit neatly into any of them?
That’s where the Claude Agent SDK becomes interesting.
The SDK exposes capabilities for building applications around the agent execution loop.
Instead of relying exclusively on a predefined Claude Code experience, developers can create their own execution harness.
That harness might operate in:
A container or Kubernetes environment
An application server or worker
An AWS-hosted workload
A scheduled automation process
A custom internal platform
A product exposing specialized agent capabilities
The important distinction is that the SDK provides agent capabilities, while your application supplies the surrounding execution and operational architecture.
For example, an AWS Lambda function could initiate or coordinate agent work, but long-running tasks may require a persistent compute environment or additional orchestration.
Why choose the Agent SDK?
Because sometimes your requirements involve more than running Claude Code.
You may need specialized integrations, custom permissions, persistent workflows, application-specific interfaces, or centralized operational services.
The SDK gives you a foundation for creating those capabilities.
What’s the tradeoff?
You own much more of the engineering.
That includes hosting, authentication, authorization, security, observability, retries, failure recovery, and operational reliability.
Greater flexibility means greater responsibility.
Best for: Custom agent applications, specialized enterprise integrations, managed agent services, and products requiring their own execution architecture.
Which Runner Should You Choose?
The answer depends on what you’re trying to accomplish.
Choose Local Execution when you want direct, interactive control over development work.
Choose Anthropic Cloud when you want managed execution without operating your own infrastructure.
Choose Self-Hosted Execution when internal connectivity, standardized tooling, and infrastructure control are primary requirements.
Choose GitHub Actions when you want agents to participate automatically in repository-driven engineering workflows.
Choose the Agent SDK when you need to build an execution model or application that the predefined options don’t provide.
And remember, these aren’t mutually exclusive.
An organization may use several approaches simultaneously.
A developer might work locally while GitHub Actions performs automated quality checks on self-hosted infrastructure.
Another team might use cloud-hosted sessions for isolated development tasks.
A platform engineering group might provide SDK-based services for specialized enterprise workflows.
Each model serves a different operational need.
The Intent-Driven Engineering Connection
Here’s where I believe this becomes especially important.
The runner is an execution decision. Intent is an engineering decision.
Your engineering intent should explain:
What outcome must be achieved?
What inputs and context are required?
What outputs must be produced?
What constitutes successful completion?
What constraints and permissions must be respected?
What evidence demonstrates that the outcome was achieved?
These questions remain relevant regardless of where the agent executes.
The execution environment may introduce additional constraints.
A self-hosted runner might have access to internal services that a cloud-hosted runner cannot reach.
A GitHub Actions workflow may have tightly scoped permissions and mandatory approval gates.
A custom SDK application may require entirely different operational controls.
But the fundamental engineering discipline remains the same.
Define the intent. Provide the context. Execute within boundaries. Validate the outcome. Preserve the evidence.
That is the foundation of Intent-Driven Engineering.
And What About Agent Autonomy?
Another important consideration is how much freedom the agent actually needs.
Greater autonomy isn’t automatically better engineering.
An interactive local session may require frequent human decisions.
A GitHub Actions workflow may operate automatically within tightly defined permissions.
A self-hosted agent may have extensive execution capabilities but limited authority to perform consequential actions.
These are independent decisions.
The execution location does not automatically determine the appropriate level of autonomy.
The engineering principle I prefer is:
Design for maximum validated outcomes with the minimum necessary agent autonomy.
That means establishing appropriate permissions, governance boundaries, quality gates, human approvals, and evidence requirements regardless of the execution environment.
Final Thoughts: The Runner Isn’t the Architecture
It’s tempting to turn every new AI execution capability into an architectural initiative.
New infrastructure.
New orchestration layers.
New services.
New operational complexity.
But the existence of another execution option doesn’t automatically justify using it.
Start with the engineering outcome.
Identify the required capabilities.
Understand the operational and security constraints.
Then select the simplest execution model that satisfies those requirements.
Sometimes that’s a laptop.
Sometimes it’s GitHub Actions.
Sometimes it’s a self-hosted environment.
And sometimes the requirements genuinely justify building something more specialized.
The objective isn’t to maximize infrastructure, complexity, or autonomy.
The objective is to produce validated engineering outcomes with the least necessary complexity.
The agent can run almost anywhere.
The engineering discipline should travel with it.
Official References
Claude Code Quickstart
Claude Code Remote Control
Claude Code on the Web
Claude Code Cloud Environments
Claude Code Self-Hosted Environments
Claude Code GitHub Actions
Claude Agent SDK
Repogenic | Intent-Driven Engineering
Words to paper. Code to cloud. Intent to outcomes.
#IntentDrivenEngineering #ClaudeCode #AgenticAI #SoftwareEngineering #AIArchitecture #DevOps #GitHubActions #EnterpriseAI

Comments