# Threadrun > Threadrun is a free desktop app and self-hosted runner for coding agents. It runs coding agents (Claude Code, OpenCode, Codex, Gemini CLI, Pi, Oh My Pi and Mistral Vibe) in isolated Docker containers on your own computer, your own Ubuntu (x86_64 or arm64) server over SSH, or a VM it creates at DigitalOcean or Hetzner with your own provider token. A team can share one runner: people sign in with company accounts or a PIN, get the roles and limits you set, and work in shared threads. Work lands as a branch to review, with reported spend by person and by agent and a hash-chained audit log. There is no Threadrun account: you pay your server and model providers directly. The free plan runs everything; Team and Enterprise plans add SAML single sign-on, SCIM provisioning, audit streaming and a compliance export (https://threadrun.dev/pricing.html). Key facts: - Company sign-in with OpenID Connect (Okta, Microsoft Entra ID, Google Workspace, Keycloak and others), optionally limited to email domains; SAML 2.0 in builds compiled with the `saml` feature. Admins, operators and viewers, and the same governance rules for every role. - Each thread runs in its own Docker container (not a virtual machine) with only its own agent's login, that member's GitHub login only for GitHub projects, and network access only to its model provider, GitHub, package registries and sites you allow. - Reported spend by person and by agent for 7 days, 30 days or all time, from the usage agents report; turns without a reported cost are marked rather than estimated. - Every thread's history is a hash chain you can verify and export as JSON Lines, with configurable retention and redaction of known secret formats. - Long-term memory: an agent connected over MCP can write durable facts (a preference, a person, a decision) with the conversation they came from; the text is encrypted at rest with the runner's storage key, searched by keyword and deleted by id. - Factories are multi-stage pipelines: each stage has its own agent, model and skills, starts when the stages it waits for are done, and hands off a pushed Git commit on its own branch; parallel stages are merged by a later stage that resolves conflicts; approval gates pause a stage until someone approves. Loops run an agent or factory on a schedule, an interval, a webhook or continuously, with a no-AI check that skips empty runs (free) and per-run and per-day spend limits based on reported usage. - Durable turns: Threadrun checkpoints the workspace during each turn; a turn cut off by an agent crash, an out-of-memory sandbox or a server restart is resumed automatically (at most twice): a cut-off edit or command is restored to the last checkpoint, finished steps never run again, and a cut-off command is not rerun because its effects outside the workspace can't be undone. - Who it is for: engineering teams that want coding agents in the repository without giving up company sign-in, roles, spend attribution or an audit trail, and individual developers who want the same runner on a server they own. It is not a managed cloud service or an autonomous engineer; you review and merge pull requests yourself. - Agents keep working on your server while your laptop is closed; factories run teams of agents, loops run them on a schedule, and a web app lets your team work together from any browser: presence, comments, @mentions, assignments, and following threads to get an inbox notice when an agent finishes, fails or needs an answer. - Phone access: follow and answer agents from a phone through your own server, or from your computer through Tailscale (private to your devices) or a Cloudflare quick tunnel (Cloudflare can read that traffic). - Share links: a link anyone can open in a browser, without Threadrun, to a file an agent made and the rest of its folder, for 7 days; hidden files are never shared. - Claude Code runs as Anthropic publishes it, through Anthropic's ACP adapter, under the user's own Claude Code login or token, or an Anthropic API key. Anthropic may bill third-party harness use to usage credits; teams should use an API key. - Budgets are based on usage the agents report; tool approvals depend on the agent asking for permission, and containers share the host kernel rather than isolating like virtual machines. - Compared with running agents directly on a laptop, where they share your files, logins and network, each task is isolated in its own container, clone and branch, and the team sees one shared record. Compared with hosted cloud sandboxes, the sandboxes run on hardware you control, and your code and logins never pass through a Threadrun service. ## Get started - [Introduction](https://threadrun.dev/docs/index.html): What Threadrun is, and where to start. - [Install](https://threadrun.dev/docs/install.html): Install Threadrun on macOS, Windows or Linux, set up Docker on this computer, and update to a new version. - [Quickstart](https://threadrun.dev/docs/quickstart.html): Sign in to an agent, pick a project, run your first thread, and review what changed. ## Using Threadrun - [Threads](https://threadrun.dev/docs/threads.html): How a thread works, from starting one to what happens when it sits idle, and how to stop, restart, delete or export it. - [Agents and accounts](https://threadrun.dev/docs/agents.html): Sign in to OpenCode, Claude Code, Codex, Gemini CLI, Pi, Oh My Pi and Mistral Vibe, and choose the model, effort and mode for each thread. - [Review and ship](https://threadrun.dev/docs/review.html): Follow every step an agent took, review its changes and cost, copy them into your checkout, and get them into a pull request. - [Skills and MCP](https://threadrun.dev/docs/skills-and-mcp.html): Find and add skills and MCP servers, then choose what each agent can use. - [Browse websites](https://threadrun.dev/docs/browser.html): Give an agent a real browser: open pages, click, fill forms, and let you sign in yourself. ## Automation - [Factories](https://threadrun.dev/docs/factories.html): Build a team of agents on one goal, run it, watch it work, and review what it cost. - [Recipes](https://threadrun.dev/docs/recipes.html): Save a thread or factory as a YAML file, commit it with the project, and start the same setup from the repository. - [Loops](https://threadrun.dev/docs/loops.html): Run an agent or a factory on a schedule, on a webhook, or continuously, with spend limits and a check that skips empty runs. ## Run anywhere - [Runners](https://threadrun.dev/docs/runners.html): Choose where threads, factories and loops run, and manage each runner from Settings. - [Start from another agent](https://threadrun.dev/docs/mcp.html): Point any MCP client at a Threadrun runner to start threads, factories and loops and keep talking to them from that CLI. - [Your own server](https://threadrun.dev/docs/your-server.html): Connect an Ubuntu server you control, so your agents keep working when your laptop is closed. - [Teams and web access](https://threadrun.dev/docs/team.html): Invite people to your server runner, sign in from any browser, and work together on threads, factories and loops. - [Phone access](https://threadrun.dev/docs/phone.html): Follow your agents, reply and answer permission requests from your phone, through your own server or from this computer. ## Plans - [Licensing](https://threadrun.dev/docs/enterprise.html): The free plan for one person, Studio for a team, Enterprise for compliance, what each includes, and how to set up SAML, SCIM, audit streaming and the compliance export. ## Control - [Governance](https://threadrun.dev/docs/governance.html): Set the rules for your agents, including tool permissions, network access, budgets, approvals, retention and the audit log. - [Privacy and data](https://threadrun.dev/docs/privacy.html): Where your threads, credentials and logs live, what sandboxes can reach, and how to delete your data. - [Security](https://threadrun.dev/docs/security.html): In plain words: how Threadrun keeps agents apart, which logins each one gets, what is stored where, and how team sign-in works. - [Security review kit](https://threadrun.dev/docs/security-review.html): How Threadrun enforces each control a security reviewer checks, the evidence you can export, what the limits are, and a questionnaire you can send back. ## Help - [Troubleshooting](https://threadrun.dev/docs/troubleshooting.html): Fixes for Docker, runtime, sign-in, retired Claude Code threads, server, network policy, MCP key, usage limit, memory, disk, stuck-thread and team sign-in problems. ## Optional - [Changelog](https://threadrun.dev/changelog.html): what changed in each release. - [Downloads](https://threadrun.dev/#download): the macOS and Windows apps, with SHA-256 checksums. - [Full documentation in one file](https://threadrun.dev/llms-full.txt): every docs page as plain text.