AGENT.RUN() / GET STARTED

Set up AgentRun
with your agent.

Follow the AgentRun quickstart with your coding agent. Open the prompt in an app, or copy it into your terminal agent.

Download Markdown

The open-source platform for all your agents.

See AgentRun in action.

THE PLATFORM IN 30 SECONDS

01 ANY HARNESS

Pick the best harness for the job.

Build with Claude Code, Codex, Pi or OpenCode. Start runs from your app, on a schedule or when an event arrives. AgentRun keeps the results, files and history in one place.

Keep your agent’s files.

Version your instructions, skills and workflows alongside your code.

Choose your providers.

Use your own model keys, tools and servers. Change them as your needs change.

Run it yourself.

The platform is open source under Apache-2.0. Your deployment stays yours.

Connect Claude Code or Codex
Create and run an agent
research.ts
const agent = await client.agents.create({
  definition: {
    name: "Research assistant",
    instructions: "Research requests. Cite sources.",
    harness: "pi",
    learning: true,
    tools: ["web_search", "web_fetch"],
  },
});

await client.runs.start(agent.agent_id, {
  input: { content: "Research acme.com" },
  max_cost_usd: 1,
});

Install with npm i @parcha/agentrun-client. Set AGENTRUN_BASE_URL and AGENTRUN_API_KEY for your deployment.

The same client manages every run.

02 ANY MODEL

Get more intelligence
for every dollar.

Match model capability to the task. Use a smaller model for routine work and a more capable one when it counts. Choose through your provider or OpenRouter, using your own keys.

Choose your models
Direct providersOpenRouterCompatible gateways
Model availability follows your harness and provider.

03 ANY COMPUTE

The right sandbox
for every agent.

Pick a sandbox for your agent’s code, files and tools. Switch providers with one update, keeping your agent’s instructions and workflows.

Change your agent’s compute
TypeScript SDK
change-compute.ts
await client.agents.update(agent.agent_id, {
  definition: {
    ...definition,
    computer: {
      kind: "sandbox",
      provider: "docker",
    },
  },
}, { "If-Match": etag });

04 LEARNING

Use fewer tokens with every run.

AgentRun turns repeated steps into saved skills and tested workflows. Later runs reuse those steps instead of spending tokens planning the same work again.

Turn repeated work into a workflow.

Tested steps. Less repeated reasoning.

research-summary (chain): donefetch-source (call via tool): donefetch-sourcecall · web_fetchdoneextract-fields (extract): doneextract-fieldsextractdonewrite-report (report): donewrite-reportreportdone

Saved workflow. Ready for the next run.

  1. Find the repeated steps.

    The agent reviews its work and proposes steps it can save.

  2. Check them first.

    Proposed skills and workflows are checked before the agent reuses them.

  3. Do less work next time.

    Later runs reuse accepted steps instead of planning them again.

05 SAVED PROGRESS

Continue after
an interruption.

Keep the conversation, files and completed tool results when a run is interrupted. Restart with that saved history instead of sending the task and context all over again.

Keep the conversation

Your agent can continue with the instructions and context it already had.

Keep the work

Files and completed tool results stay with the run.

Continue the run

After a restart, AgentRun reopens the saved state so work can continue.

Continue a stopped runTypeScript client
import { AgentRun } from "@parcha/agentrun-client";

const client = new AgentRun();

// A stopped run keeps its conversation and files.
await client.runs.message("your-run-id", {
  content: "Continue with the saved context.",
});
const run = await client.runs.wait("your-run-id");
console.log(run.status, run.result);
New turn. Same conversation and files.
Saved context survives a stopped runAn agent stops after completing several steps. Its conversation, files, and run state remain saved. A new turn continues with that history. Run stoppedContinue withsaved context ConversationFilesRun state Continue with saved contextA stopped agent keeps its conversation, files, and run state. The next turn continues using that saved history. Run stoppedContinue withsaved context ConversationFilesRun state
Continue from saved history.

06 RUN HISTORY

See what every
agent did.

See what each agent tried, what its tools returned and where it got stuck. Open a run to review the work, track time and cost, and find the step that needs attention.

THE RUN, STEP BY STEP

Follow the work.
Step by step.

See model requests and tool calls in one timeline. Find the slow or failed step and open its details.

AgentRun's Dev tools timeline shows eight model requests and sixteen tool calls, including overlapping calls and a failed call, across a three-minute-forty-five-second example run.
DEV TOOLS / CALL TIMELINE EXAMPLE RUN

TOKENS, CACHE & COST

See what each
request cost.

Check token use and recorded cost for each model request. See how much input was reused from the cache and how much output the model generated.

Native request detail separates fresh input, cache reads, cache writes and output tokens, with the request's recorded cost. Values are example data.
REQUEST DETAILS / TOKEN BREAKDOWN EXAMPLE RUN

TOOL INPUTS & OUTPUTS

Find what
went wrong.

Open a failed tool call to see what the agent sent, what came back and how long it took. Secrets are removed from the preview.

A failed web_fetch call in AgentRun, with its duration and result size. Example data.
The same call's Result tab shows HTTP 403 Forbidden: the site refused an automated fetch. The native interface also provides an Arguments tab and a Copy action.
CALL DETAILS / RESULT PREVIEW EXAMPLE RUN

AGENTRUN CLOUD

One place for
your team’s agents.

Give your team a shared place to run agents. Manage access, keep costs in view, and follow the work from start to finish.

Shared agents

Bring your team’s agents into one workspace. Let others use the agents you build.

Access & permissions

Choose who can use each agent and access its data. Keep control as your team grows.

Budgets & usage

Set limits for runs and track spending across your agents. See where the tokens go.

Run history & files

Inspect each run’s steps, tool calls and results. Open the files behind the work.

Versioned agents

Keep a history of your agent’s instructions and configuration. Know which version ran.

Reusable workflows

Keep proven skills and workflows with your agents, so later runs repeat less work.

TEMPLATES

Start from a template.

Find your next agent in the marketplace. Start with a ready-made template, then make it your own.

WHY WE BUILT IT

Agents should get better at the work they repeat.

AgentRun came from three years of building agents in production. We kept seeing the same gap: capable models, expensive repetition and too little visibility when real work scaled.

01 / THREE YEARS IN THE LOOP

We learned by running the work.

We moved from brittle demos to static workflows to agents that could handle the messy middle. The useful lessons came from keeping real jobs moving after the demo ended.

02 / THE BILL IS FEEDBACK

Claude token bills made repetition impossible to ignore.

When the same planning happens again and again, a frontier model turns every repeat into a new line item. AgentRun captures proven steps, checks them and saves the model for the exceptions.

03 / BUILT FOR REAL VOLUME

Enterprise scale changes the product.

Our customers run hundreds of thousands of jobs. That makes durable execution, budgets, recovery and an audit trail part of the product, not polish added later.

PLATFORM COMPARISON

Why AgentRun?

Choose your harness. Own your infrastructure. Turn repeated work into reusable skills and tested workflows.

Included Not offered Partial / different scope Not documented

Scroll to compare platforms

What you get Open sourceAgentRun AnthropicClaude Managed Agents OpenAIAgents API Google CloudGemini Enterprise Agent Platform
Open source & self-hostableFull platform, including the console Apache 2.0 Managed service Managed service Managed service
One API across harnessesChoose how your agents run Pi · Claude Code
Codex · OpenCode
Claude only Codex only Custom integration
Learns skills & workflowsFrom completed runs Built-in, evaluated learning Memory learning
Preview
Not documented Skill optimization
Experimental
Durable executionRecover interrupted work Built-in recovery Durable sessions Durable sessions Opt-in resume
Run multiple agentsManage concurrent work Shared API & console Agent teams Parallel subagents Multi-agent workflows

Compares the named platforms.

07 DEPLOYMENT

Open source.
Or hosted for you.

Learning, recovery, and the console are all open source. Run AgentRun with your own API keys, or choose a hosted deployment.

Self-hosted

Run AgentRun on your machine or server. Bring your own model API keys and keep control of your agents and data.

  • Self-learning and reusable workflows
  • Run history and recovery
  • Agent management console

Free under Apache-2.0 · View on GitHub

Cloud

Choose hosted AgentRun from the team at Grep. Build and run your agents while we manage the infrastructure.

  • Hosted AgentRun deployment
  • No server to maintain
  • Start in the Cloud console
Get started

Infrastructure managed by the Grep team.

Enterprise

Work with the Grep team to plan an AgentRun deployment around your infrastructure, access requirements, and support needs.

  • Deployment planning
  • Security and access review
  • Team onboarding and support
Talk to sales

Discuss your requirements with our team.

Built by the team behind Grep AI, whose platform powers business process agents at Worldpay, IG.com, Citizens, and Airwallex. Self-host AgentRun with your own keys, or let us host it on AgentRun Cloud.

FAQ

Frequently asked questions

How to bring your agents, put them to work and keep track of what they do.

What is AgentRun?

AgentRun is an open-source platform for deploying and running AI agents. Give an agent its instructions, tools and model, then start runs from your app, a schedule or an event. The console shows what each agent did, what it cost and whether it needs your attention.

Run your first agent

Can I use an agent I’ve already built?

AgentRun supports Pi, Claude Code, Codex and OpenCode. Bring your agent’s instructions and configure the model, tools and runtime it needs. Native Claude Code and Codex connections are also available in the development build; their source machine must stay online. Moving an agent’s definition does not automatically move its dependencies, sign-ins or past runs.

Agent setup and native connections

How do I start a run?

Start a run in the console or call the API from your app. Add a schedule or event trigger to start runs automatically—for example, a nightly report or a review when a pull request opens. You choose the agent, give it the tools it needs and set a spending limit.

Agents and runs · Schedules and triggers

Where can I deploy it?

Use AgentRun Cloud, or run the open-source platform on your own machine or server. The console, run history, recovery and learning are included under the Apache-2.0 license. When you self-host, you manage the infrastructure and pay the model and tool providers you use.

Deployment options · AgentRun Cloud

Can I choose the model for each agent?

Yes. Configure each agent with a model supported by its runtime, using your provider, OpenRouter or a compatible model gateway. You can use different models for different jobs. Available models and sign-in options depend on the runtime and provider you choose.

Models and API keys

What happens if a run is interrupted?

AgentRun records the conversation, files and completed tool results. If its data store survives the interruption, it can recover an unfinished run after a restart. You can also continue a deliberately stopped run with a new message and its saved history. Cancelled runs cannot continue, and external actions still need protection against duplicate writes.

Recovery and saved progress

How do agents reuse what they’ve learned?

With learning enabled, an agent reviews its runs and proposes notes, skills and workflows for repeated steps. Proposals are checked before later runs can reuse them. This updates the agent’s saved knowledge and procedures, not the model’s weights.

Reusing steps can reduce repeated planning and token use. The launch post reported a 90% cost reduction for one compliance workload. Savings depend on the task, and learning has its own cost.

How learning works · Launch cost example