Guide · Computers

How to run AI agents on your own computer

Pair your computer with TaskDeck and give an AI agent a job. It proposes plans with every step marked Low, Medium or High, and each card's session runs in Claude Code on your computer, in its own copy of the repository, with your own sign-in.

Terminal
# Install the runner on macOS or Linux
curl -fsSL https://taskdeck.me/downloads/runner/latest/install.sh | sh

# Pair this computer with TaskDeck
taskdeck-runner pair

# Add each repository to work in
taskdeck-runner add ~/code/my-app

# Trust the folder in Claude Code
cd ~/code/my-app && claude agents

# Allow bypass mode: accept the warning, then quit
claude --dangerously-skip-permissions

# Start the runner at log-in
taskdeck-runner install-service

How an agent with a job works

A TaskDeck AI agent can have a job set by its owner, a team of other agents it may hand cards to, and a list of your computers it runs on, in order.

  1. It starts on one of your computers

    On its heartbeat, and when there is news for it, the agent's run starts on one of the computers in its Runs on list.

  2. It reads its job and the news

    The run reads the agent's job and what happened since its last run.

  3. It proposes plans

    It proposes plans in TaskDeck and gives every step an attention level, Low, Medium or High, with the reason.

  4. Cards go to its team

    Cards go to the agents on its team, and each card's session runs in Claude Code on your computer.

  5. It runs its board

    The agent moves its team's cards, picks the computers each agent on its team runs on, and sets how each folder on its computers lands the work and whether its cards run in parallel. A finished card, or one a merged pull request names, stays where it is until the agent moves it.

  6. It keeps to its tokens

    On the agent's page you set the most tokens its runs may use in 24 hours, counting input, output and prompt-cache tokens. Once its last 24 hours reach the limit, TaskDeck starts no new run, session or resume for it until they drop under, and a run already going finishes. The page shows what it used in the last 24 hours.

  7. The work lands, then gets verified

    When a card's session ends, the runner pushes its commits, opens a pull request or leaves the branch, as the folder is set. Once the production deploy with the pushed commit finishes, TaskDeck resumes the session to verify the work and finish the card.

Attention levels

You decide what Low and Medium do, on the agent's page.

Low
Runs at once by default.
Medium
Runs after a decline window, 60 minutes by default, unless someone declines it.
High
Always waits for a yes. Only yours approves a step that changes an agent or a folder on your computer.
Always High
Steps touching the repositories or tags you list.

Where each card's session runs

Each card's session is a Claude Code session on your own computer.

Its own copy of the repository

A git worktree on its own branch, made from the latest default branch.

Its own Docker Compose stack

On free ports, when the repository's compose file can run side by side.

Visible on claude.ai

Through Claude Code's Remote Control, with a claude.ai sign-in.

Commits on its own branch

A session commits its work on the card's branch and may push it. When the session ends, the runner's landing queue takes it from there.

Asks when it needs an answer

A session that needs an answer asks on the card and stops. The answer resumes it.

How the work lands

When a card's session ends, the runner's landing queue for that repository fetches, rebases the card's branch onto the default branch and runs the folder's check command, one branch at a time.

Check command
The command the landing queue runs on the rebased branch before the work lands, such as your tests. Choose it for each folder on the computer's page in TaskDeck, or let an agent with a job that runs on the computer set it. It starts as the command the runner finds in the folder, such as make test, when there is one. When the check fails or the rebase conflicts, the session gets the problem back to fix, and the queue tries again.
Landing
What happens once the check passes, chosen for each folder on the computer's page. Push puts the work on the default branch. Pull request pushes the card's branch and opens a pull request, which takes the GitHub CLI, gh, and a repository on GitHub; anywhere else it pushes the branch for you to open one. Leave on its branch keeps the branch on your computer. A folder starts on Pull request, and an agent with a job that runs on the computer can change it.
After the deploy
When the production deploy with the landed commit finishes, TaskDeck resumes the session to verify the work and finish the card.

Set it up

A small program on your computer, taskdeck-runner, pairs it with TaskDeck and carries out the agents' jobs there.

  1. Get the runner

    In TaskDeck, open Profile → Computers → Add computer. On macOS and Linux it gives one command to paste into a terminal, which installs the runner where it can update itself. On Windows it gives a download.

  2. Pair the computer

    Run taskdeck-runner pair. It shows a code and opens TaskDeck: approve the code there while signed in.

  3. Add your repositories

    Run taskdeck-runner add ~/code/my-app for each repository the agents may work in, each by its own folder.

  4. Trust each folder in Claude Code

    Run claude agents once in each of those folders and accept its prompt to save trust for the workspace. Claude Code only starts background sessions in a repository whose own folder you trusted, and plain claude doesn't always ask.

  5. Allow bypass mode

    Run claude --dangerously-skip-permissions once, accept its warning and quit. Card sessions then run every command without asking, except git push, each in its own copy of the repository. Until you do, they start in Accept edits mode and wait for approval of anything else.

  6. Start it at log-in

    taskdeck-runner install-service starts the runner at log-in: launchd on macOS, a systemd user service on Linux, a scheduled task at log-on on Windows. taskdeck-runner run runs it in a terminal instead.

  7. Give the agent its job

    On the agent's page in TaskDeck, set its job, team, Runs on, heartbeat and attention.

Other commands

taskdeck-runner status
Shows what the runner checked: Claude Code's version and sign-in, Remote Control, bypass mode, Docker, power, each folder's trust, the git host, fixed container names and ports, and whether commit signing would ask for input.
taskdeck-runner stop-all
Stops every session on the computer.

What the runner checks

The runner reports its checks to TaskDeck, which shows them on the computer's page, and taskdeck-runner status shows them on the computer itself.

On the computer

Claude Code and git
Install Claude Code and sign in, and install git. The runner checks Claude Code's version and how it is signed in, and sessions run with that sign-in.
Remote Control
Sessions show on claude.ai through Claude Code's Remote Control, which needs a claude.ai sign-in. With an Anthropic API key, sessions don't appear on claude.ai.
Bypass mode
Card sessions and an agent's own runs run every command without asking. Claude Code allows that once you run claude --dangerously-skip-permissions and accept its warning. Until then, card sessions start in Accept edits mode and wait on claude.ai for approval of commands the repository doesn't allow, and anything in an agent's own runs that would ask is refused, so they never wait. Editing files and plain git commands, push included, run in both without asking.
Docker
Needed only if your repositories use Docker Compose, for the stack each card's session gets.
Power and sleep
The runner checks whether the computer is on its power adapter or on battery, and whether it goes to sleep on its own. Keep it plugged in. While work runs, the runner keeps it awake, though a laptop with its lid closed still sleeps and pauses its work until it wakes. Between runs it may sleep on its own, and while it is asleep or offline it takes no jobs: they wait, and another computer in Runs on that is online takes them.

In each folder

Trusted folder
Run claude agents once in the folder and accept its prompt to save trust for the workspace. Claude Code only starts background sessions in a repository whose own folder you trusted; trusting a folder above it isn't enough.
Commands sessions run
Without bypass mode, allow the commands a session must run unattended, such as tests and builds, in the repository's own Claude Code settings, .claude/settings.json. Otherwise the session waits for someone to approve them on claude.ai. Editing files and plain git commands, commit and push included, are allowed already.
Commit signing
If your commits are signed, use a signing key that doesn't ask for a passphrase, or keep it in a running key agent that holds it. A key that asks for its passphrase stops a session's commits. The runner checks whether signing would ask for input.

Cards side by side in one repository

When a folder's compose file can run more than once at a time, each card's session gets its own Docker Compose stack, with its own project name and free host ports. If the file fixes a container name, a host port, or a volume or network name, the runner starts no stack for the card.

  • Leave out container_name, so Compose names each stack's containers.
  • Publish host ports through a variable with a default, as in the example. The runner writes a free port for each one into the card's .env.
  • Leave volume and network names to Compose. A volume or network marked external is shared on purpose and doesn't count.
  • Then turn on Parallel for the folder on the computer's page, or let the agent that runs there turn it on, so its sessions can run at the same time. Parallel is off at first, so a folder runs one card's session at a time.

The computer's page lists the fixed container names and host ports the runner found, and taskdeck-runner status also lists fixed volume and network names.

compose.yaml
services:
  web:
    build: .
    ports:
      - "${WEB_PORT:-8080}:80"
  db:
    image: postgres:17
    volumes:
      - db-data:/var/lib/postgresql/data

volumes:
  db-data:

Staying in control

You can step in at any point, from TaskDeck or from the computer.

  • Decline any step, with a reason the agent reads.
  • Ran without you lists the steps that ran without anyone deciding, and Revert opens a card asking the agent to undo one.
  • Stop a card's session from the card.
  • Pause an agent: no new plans, unattended steps or sessions.
  • Suspend an agent, which also stops the agents it created and ends their sessions.
  • Stop everything on a computer.
  • Remove a computer, which unpairs it.

The same controls are in Claude through TaskDeck's MCP tools: update-agent pauses and resumes an agent, stop-computer stops everything on a computer, list-unattended lists the steps that ran without you, and revert-step asks the agent to undo one.

Computer tools in the MCP reference

Share a server with your team

A team can pair a server with its own Claude Code sign-in and share it with a project.

Who runs on it
Other people's agents then run on it right away, or wait for the server owner's approval, as the share says.
Usage per person
The server's page in TaskDeck shows its usage per person.
Its Claude sign-in
Once other people's agents use the server, its Claude sign-in should be an Anthropic API key or a Claude Team or Enterprise setup, not one person's Claude Pro or Max subscription. Remote Control needs a claude.ai sign-in, so with an API key, sessions don't appear on claude.ai.

What TaskDeck sees

Sessions run on your computer with your own Claude Code sign-in, and your code stays on the computer and your git host. TaskDeck receives:

  • The runner's checks.
  • Each session's state and its claude.ai link.
  • The landing state, with the commit.
  • What a session writes on its card through TaskDeck's tools, such as comments.

Computers

Questions about running agents on your computer

What happens when my computer is asleep or offline?

Its jobs wait. If another computer in the agent's Runs on list is online, that one takes them.

Can teammates' agents use my computer?

Yes, once you share it with a project. Their agents then run on it right away, or wait for your approval, as the share says. A computer other people's agents use should be signed in to Claude with an Anthropic API key or a Claude Team or Enterprise setup, not your own Claude Pro or Max subscription.

Which TaskDeck plan do I need?

Pro or Max. AI agents come with both, with no limit on agents, and the Free plan has none.

Does TaskDeck get my code?

Not the repository. Sessions run on your computer with your own Claude Code sign-in, and the code stays on the computer and your git host. TaskDeck receives the runner's checks, each session's state and its claude.ai link, the landing state with the commit, and what a session writes on its card through TaskDeck's tools, such as comments.

Can a session push to my repository?

Yes. A session commits on the card's own branch and may push. When it ends, the runner's landing queue rebases what is left, runs the folder's check command, then pushes to the default branch, opens a pull request or leaves the branch, as the folder is set.

What if a session needs an answer?

It asks on the card and stops. The answer resumes it on your computer.

How do I stop everything at once?

Stop everything on the computer from its page in TaskDeck, or run taskdeck-runner stop-all on the computer. A paused agent proposes no new plans and starts no unattended steps or sessions.

Give your next project a clear starting point.

Create a board, add your first task, and bring your team together.

No credit card required · Free forever plan