Skip to main content

Connect your coding agents

Run these commands inside the repository you want agents to work on. Run in another folder, libraos-core init registers no repository.

The repository needs at least one commit: workers start from it, and in an empty repository they refuse with "has no commit yet". For a new repository, commit a README first, or make an empty commit:

git commit --allow-empty -m "Initial commit"

Connect​

For a new installation, libraos-core init asks for EULA acceptance, sets up local services and connects your clients. Local use requires no activation code or invitation. The steps below explain the individual settings and are useful for an existing installation or a shared host. Start with the quickstart for the shortest path.

  1. Say who you are, before the first Claude Code or Codex session that uses LibraOS Engine, in this shell and for new shells:

    echo 'export AGENTD_USER=YOUR_NAME' >> ~/.profile
    export AGENTD_USER=YOUR_NAME

    Use your GitHub login by convention. Without it, the first session creates a user named after your OS account. That works for one person, but see Who you are before you add a second owner.

  2. Go to the repository:

    cd ~/path/to/your-repo
  3. Choose how Claude Code and Codex reach a model, and preview the changes:

    If Claude Code or Codex is signed in, or uses your own provider key, the workers need nothing more:

    libraos-core init --dry-run
    libraos-core connect --dry-run

    The dashboard's Chat is the exception. It never uses the clients' sign-in and needs a model gateway in [gateway]; see Chat.

  4. Apply them, with --model-key ~/.config/agentd/libraos.key on libraos-core init if you used it in step 3:

    libraos-core init
    libraos-core connect
  5. Add yourself as the owner, with the name from step 1:

    libraos-core user add YOUR_NAME --role owner

    If the name already exists, such as your OS account's, the command updates its role and says so.

  6. Optionally, add the repository rule (see the table below):

    libraos-core connect --repo-rule
  7. Check the setup, and run it again until it reports no required failure:

    libraos-core doctor
  8. Open a new Claude Code or Codex session. claude mcp list should show agentd as connected.

What each command does​

CommandWhat it does
libraos-core initRecords EULA acceptance, creates local state and services, and connects installed clients.
libraos-core connectRegisters the agentd MCP server and hooks in Claude Code and Codex, and backs up every file it changes.
libraos-core connect claudeConnects Claude Code only.
libraos-core connect codexConnects Codex only.
libraos-core connect --repo-ruleAdds an untracked rule to this repository telling your sessions to send implementation work through LibraOS Engine. It is optional and never edits a tracked file.
libraos-core doctorChecks the setup and prints the command that fixes each failure.

Init and connect are safe to run again: a second run changes nothing.

Who you are​

AGENTD_USER tells LibraOS Engine who starts and pays for the workers a session or a terminal starts. A session without it is recorded as your OS account, marked as only inferred:

  • Alone on the ledger, that is enough. libraos-core user add of your OS account's name updates the existing user instead of failing.

  • With a second person or a second owner, LibraOS Engine cannot tell who an inferred session is, so it refuses to dispatch workers for it, and libraos-core run refuses too. When you add another owner while the OS account's automatic user is still there, libraos-core user add says so. If both are you, remove the automatic one and set AGENTD_USER:

    libraos-core user remove OS_ACCOUNT_NAME
    export AGENTD_USER=YOUR_NAME # and in ~/.profile

    Then open new sessions.

Remove a repository​

There is no command for it. The dashboard lists a checkout while its folder exists and the ledger has a session, a worker or libraos-core init there. To stop using one:

  1. Remove the repository from [sync] repos in ~/.local/share/agentd/config.toml, so libraos-core pr sync-gh and the dashboard stop reading its pull requests.
  2. Delete or move the checkout folder. A folder that no longer exists drops out of the dashboard's lists. Its history stays in the ledger.
  3. Optionally, remove its repository rule, worktrees and branches, and its trust entry, as in Uninstall.

Trust the repository for Claude workers​

Claude workers start only in a folder Claude Code trusts. In the repository, run:

libraos-core trust --dry-run # shows what it would change
libraos-core trust

This is the same as accepting Claude Code's trust prompt for this checkout. It marks the repository, given as DIR or the current one, and that covers the workers' worktrees under .claude/worktrees. It changes ~/.claude.json and writes a backup beside it. Doctor's trust check reports checkouts Claude Code does not trust.

Accepting the prompt in claude in the repository also works, if you can reach it: without a Claude sign-in, Claude Code shows its login screen first.

What a session gets​

  • The MCP server. Each session joins the shared ledger and starts with a short list of tools: its inbox, claiming, checkpointing and finishing a handoff, file claims, and approval requests. The tools_more tool lists the rest.
  • The hooks (Claude Code). They deliver the inbox and context reminders, warn on edits to claimed paths, and keep the session's checkpoint current.
  • Two skills. The agentd skill hands work to a worker from the session: it drafts a task from the code (goal, acceptance criteria, verification), shows it before starting it, checks progress and handles the Inbox. The agentd-setup skill takes a session from an installed binary to a first verified task.

Set up from a session​

LibraOS Engine also works the way you already use Claude Code or Codex. In a session in your repository, ask:

Set up LibraOS Engine for this repository. Connect my coding agents and help me run my first verified development task.

The session runs the same init, connect and doctor commands, and asks before it starts a worker, since a worker costs model usage.

Next: The dashboard.