Perdura

Tell it once.
See what it did.

An open-source agent that stays responsible for the work you hand it. Through hours or days, and through waits for a file, a time or your decision, it keeps following through, then hands back a receipt showing what you asked, what happened, and what it delivered.

Free and open source. Use your Claude Code or Codex subscription, or any Anthropic- or OpenAI-compatible API.

A Perdura receipt: the goal, nine one-minute waits folded into one record row, active time, Steps, model usage and cost, and the outcome Delivered.

How it works

Hand it the job. Come back to the result.

It waits, then continues

Hand off work that needs a file, a time, an event or your answer. Close the Dashboard; it picks up when it can, even days later.

Every job ends with a receipt

What you asked, what happened, how long it took, what it cost and what it delivered, on one page you can come back to.

On your computer, in a sandbox

Your work and records stay under ~/.perdura. Tasks run in the operating system's sandbox and write only inside their workspace unless you approve.

Make it yours

Ask it for an app

“Build me a Hacker News app: the top 10 stories, refreshed every morning at 9, with a Refresh button.” The apps it builds stay in Apps.

Answer it from your chat app

Connect Telegram, Feishu or WeChat. Its questions and approval requests reach you there, so a job need not wait for you to open the Dashboard.

Bring your plugins

Import the plugins and skills you already use in Claude Code or Codex, upload your own, or add a remote MCP server.

Why it can wait

The model decides. The runtime keeps state.

Most agents keep a transcript and leave the model to work out, at every step, what holds now. Perdura's agent acts by writing Python, so the state of a task is the state of a running program. The runtime keeps it: every call and its outcome, the values the program built, and the work still waiting. Each step, the model sees that state instead of the transcript.

Top: in a loop over a transcript, the model decides the next action and also keeps state by reading the transcript back every step. Bottom: in Perdura the model sends a Python action; the runtime keeps an execution ledger of outcomes, a persistent namespace of values and a work lifecycle of unfinished work, and gives the model a projection of that state as its context.
The model generates a Python action. The Perdura runtime runs it: the execution ledger records and settles every call to tools and resources, and on that record the step updates the persistent namespace of values and the work lifecycle, which waits until a wake event. Together they form one execution state; the projection builds the model's next context from it and from new messages.

The runtime runs each Python action. The execution ledger (L) settles every call; on that record the step updates the persistent namespace (N) and the work lifecycle (W). The three form one state, restored together, and the projection (Π) builds the model's next context from it.

Research

Measured against four widely used harnesses

Perdura: The Model Decides, the Runtime Keeps State

Haoyu Wang*, Zhen Wang*, Zhiyu Yang, Hanqing Wang, Kaichen Huang, Shuo Wang†, Bo An†
Nanyang Technological University · Nanjing University · University of Texas at Dallas · Shanghai University of Finance and Economics · Tsinghua University

arXiv 2612.05288
7 of 8
model–benchmark settings on the score–cost frontier, against Claude Code, Codex, Hermes and OpenClaw
11–38%
higher cost at the same score when one state mechanism is taken away
5 of 5
points where the runtime was killed mid-task and resumed with no repeated effect
Score against cost per run for four benchmarks and two models. Perdura is marked with a star and lies on the Pareto frontier in seven of eight panels.

Score against cost per run, each the mean of three runs. The dashed staircase is the Pareto frontier.

Score (%) on each benchmark and total cost per run ($), means of three runs. Bold marks the best score in each row and the lowest total cost.

FAQ

Questions

What kind of job is it for?

Work you want someone to stay responsible for, without watching it yourself: watching something and reporting back, gathering and comparing information across the web and your files, sorting out a folder, building a small app that refreshes on a schedule. It keeps going for hours or days, stops to ask when a decision is yours, waits when it needs a file or a time, and continues from saved records.

How is it different from Claude Code or Codex?

Claude Code and Codex are coding agents you work with in a session. Perdura is built for jobs you hand off and come back to: its runtime keeps the state of the task, so a job can wait and continue, and every job ends with a receipt. It can use your Claude Code or Codex subscription as its model.

Does my computer need to stay on?

Yes, while a job needs to act: keep the computer awake and Perdura running. The Dashboard can be closed. After a restart, Perdura reloads its committed records and continues.

Is it safe to let it run commands?

Tasks run in the operating system's sandbox and can write only inside their workspace by default. Going further, or touching ~/.ssh, the keychain or Perdura's own private files, asks you first; you set the policy in Settings → Permissions.

Credentials you keep in Settings → Secrets reach the Agent only as references. The value is filled in on your computer when a command runs and masked in its output and records. Commands also do not inherit your shell's environment variables, so API keys you keep there stay out of reach.

What does it cost?

Perdura is free and open source under Apache-2.0. Model usage is billed by your provider or covered by your subscription, and every receipt shows what a job used.

Hand it the first job.

git clone https://github.com/R0k1e/perdura-agent.git
cd perdura-agent
./scripts/install.sh
perdura start

Runs on macOS and Linux; on Linux, use ./scripts/install.sh --prepare-system to also set up the sandbox. Run it as your ordinary user, then connect a model in the Dashboard. The Quickstart walks through a job that waits for a second CSV file.

Citation

@misc{wang2026perdura,
  title         = {Perdura: The Model Decides, the Runtime Keeps State},
  author        = {Haoyu Wang and Zhen Wang and Zhiyu Yang and Hanqing Wang and Kaichen Huang and Shuo Wang and Bo An},
  year          = {2026},
  eprint        = {2612.05288},
  archivePrefix = {arXiv},
  primaryClass  = {cs.CL},
  url           = {https://arxiv.org/abs/2612.05288}
}