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.
-
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' >> ~/.profileexport AGENTD_USER=YOUR_NAMEUse 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.
-
Go to the repository:
cd ~/path/to/your-repo -
Choose how Claude Code and Codex reach a model, and preview the changes:
- Your own sign-in
- LibraOS model API key
If Claude Code or Codex is signed in, or uses your own provider key, the workers need nothing more:
libraos-core init --dry-runlibraos-core connect --dry-runThe dashboard's Chat is the exception. It never uses the clients' sign-in and needs a model gateway in
[gateway]; see Chat.If Claude Code and Codex are not signed in and you use a LibraOS model API key (from the Console's API keys page), save the key in a file only you can read:
mkdir -p ~/.config/agentdinstall -m 600 /dev/null ~/.config/agentd/libraos.keynano ~/.config/agentd/libraos.key # paste the lk_… key alone, save and exitlibraos-core init --dry-run --model-key ~/.config/agentd/libraos.keylibraos-core connect --dry-run--model-keywrites the gateway settings for Chat and the dispatch settings for Claude and Codex workers, pointed at the key file. It never prints the key. In an existing config it adds them only when it has neither a[gateway]nor a[dispatch]table, and otherwise changes nothing and says so. Models and billing explains each setting. -
Apply them, with
--model-key ~/.config/agentd/libraos.keyonlibraos-core initif you used it in step 3:libraos-core initlibraos-core connect -
Add yourself as the owner, with the name from step 1:
libraos-core user add YOUR_NAME --role ownerIf the name already exists, such as your OS account's, the command updates its role and says so.
-
Optionally, add the repository rule (see the table below):
libraos-core connect --repo-rule -
Check the setup, and run it again until it reports no required failure:
libraos-core doctor -
Open a new Claude Code or Codex session.
claude mcp listshould show agentd as connected.
What each command does
| Command | What it does |
|---|---|
libraos-core init | Records EULA acceptance, creates local state and services, and connects installed clients. |
libraos-core connect | Registers the agentd MCP server and hooks in Claude Code and Codex, and backs up every file it changes. |
libraos-core connect claude | Connects Claude Code only. |
libraos-core connect codex | Connects Codex only. |
libraos-core connect --repo-rule | Adds 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 doctor | Checks 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 addof 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 runrefuses too. When you add another owner while the OS account's automatic user is still there,libraos-core user addsays so. If both are you, remove the automatic one and setAGENTD_USER:libraos-core user remove OS_ACCOUNT_NAMEexport AGENTD_USER=YOUR_NAME # and in ~/.profileThen 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:
- Remove the repository from
[sync] reposin~/.local/share/agentd/config.toml, solibraos-core pr sync-ghand the dashboard stop reading its pull requests. - 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.
- 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_moretool 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
agentdskill 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.