Find your next open-source project

Search by name, purpose, or keyword, or paste a GitHub URL. Start with / to search agent skills (e.g. /pdf)

Parcha-ai/agentrun

AI Engineering

Self-hostable control plane for running coding agents with durable runs, spend caps, approvals, and reusable learned workflows.

This project ships 10 agent skillsSkill list and install →
1,361
115
JavaScript
Apache-2.0
2 months old

What it does

AgentRun is a self-hostable platform that wraps an existing agent harness (pi, Claude Code, Codex, OpenCode) with the surrounding infrastructure: a server, a store, runners and "hands" for tool execution. It focuses on three things: durable execution (a run continues after a server restart), a learning loop that turns corrections and completed runs into reusable workflow drafts, and a control plane with approvals, spend caps and per-agent cost tracking.

Repeatable work can be expressed as typed workflows rather than free-form agent loops; a workflow step can call a tool, ask a model a schema-checked question, branch, fan out, loop a bounded number of times, or hand an unclear case back to an agent. Agents keep a git-backed learning folder whose corrections.md is injected into every later run, and once an agent reaches 20 completed runs by default a job can be compiled into a workflow draft that passes code checks and a replay before it serves.

The target user is a team already running coding or business agents that wants run history, human-in-the-loop controls and cost visibility without building provider integrations, recovery and learning from scratch.

Quickstart

Requires Node 24.22.3 or newer on macOS or Linux. From any directory:

npx @parcha/agentrun

This starts the server and one runner on port 7340 (or the next free port), stores data under ~/.agentrun and opens the console in the browser. In the console, set a password, then either press Continue with ChatGPT to run Codex/pi agents on a ChatGPT plan, or paste an OPENROUTER_API_KEY (every harness), an Anthropic key (pi and Claude Code) or an OpenAI key (pi, Codex, OpenCode).

Then open Templates, apply KYB due diligence, and start a run with a company name and website. The finished run's Report tab holds a cited due-diligence report, and the agent's Learning tab shows what was kept. The same run can be driven from the CLI or the TypeScript/Python clients; runs wait exits 8 when a run is waiting on a question, cap or approval.

Alternatively, let a coding agent install it by pasting the setup prompt from the setup skill, or use AgentRun Cloud for hosted access.

Deployment options

Besides local npx, there are Railway and Render buttons, a one-command VPS installer, a Helm chart, and Coolify/Dokploy templates; deployment details and caveats live in the deploy guide. Local npx and the root compose file give agents Docker sandboxes; the Railway, Render, Kubernetes and Coolify/Dokploy paths have no Docker socket, so agents get file tools and web_fetch but no shell. Runners can be scaled on Postgres via AGENTRUN_STORE_URL, but in this release they still share the /data volume.

Constraints

  • Platform: local install is documented for macOS and Linux with Node 24.22.3+; Windows is not covered.
  • Harnesses need keys: Claude Code and OpenCode do not run on a ChatGPT plan; Jev decisions and paid tools also need their own keys. Codex and pi do run on a ChatGPT sign-in.
  • Sign-in scope: a ChatGPT sign-in is for the single person who runs the server and must not be shared.
  • Computers bill externally: sandbox, desktop, phone and browser providers are billed through your own vendor account, and the Docker socket, where mounted, is root on the host.
  • Secrets: all stored secrets are sealed under AGENTRUN_SEAL_KEY; losing it loses them. The API token cannot write secrets or approve tool calls.
  • Telemetry: the server sends anonymous usage counts by default; AGENTRUN_TELEMETRY=0 or DO_NOT_TRACK=1 disables it.
  • Maturity: some connector features are marked development-build only, and the Northflank template was built from docs and tests rather than walked on a real account.
  • License: Apache-2.0.

HotRepo's take

The project's strongest stated claim is cost: a self-built code reviewer at 18 cents per review that, on 30 unseen PRs, caught 1.6x the real bugs of a commercial reviewer. That claim drew a direct rebuttal from the Sourcery CEO in the Show HN thread, who argued that the comparison ignores a precision-recall trade-off and that the two tools differ sharply in comment volume. The number should therefore be read as a specific comparison under specific conditions, not a general benchmark. Discussion elsewhere in the same thread asked how reviewer loops handle nitpicky edge cases comment and how autonomy is kept controllable in the self-improving path comment.

On HotRepo's records, the repository appeared on the JavaScript daily list on 2026-12-04 at position 8 with 27 stars gained that day; no all-language daily rank has been recorded. Two Show HN posts exist (138 points in November 2026, 51 points in September 2026). The commercial interest around the code-review claim is where the discussion's value lies; treat AgentRun's learning metrics as author-reported until your own templates are evaluated on your data with template eval.

Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.

Hacker News

Show HN: AgentRun – open-source, Self-improving Managed Agents
▲ 138 · 41 comments · November 12, 2026
Show HN: AgentRun: DSL to turn agents into workflows
▲ 51 · 12 comments · September 23, 2026

You might also like

  1. ArtificialAnalysis/TokedexSelf-hosted gateway that unifies model APIs, routes requests by benchmark scores, and tracks token spend.TypeScript122