Quickstart
1. Get the CLI
The afh command-line tool is how you pull and publish harnesses. It needs Node.js 22 or newer.
npm install -g agentfacehub
afh --version
To try it without installing, put npx agentfacehub wherever these docs say afh.
2. Find a harness
Browse the hub or search for what you need. Each harness page shows what the model must support, which hosts it can reach, its files, and every published version.
3. Run it, or pull it
Run it right here, on the model you choose, with your own API key:
export ANTHROPIC_API_KEY=…
afh run yoyo/hello-harness --model anthropic/claude-sonnet-5-5 "What does this repo do?"
It can read the files in the current folder but not change them. Leave out the task to chat. See Running a harness for other providers, writing files and traces.
Or install it into Claude Code, as a subagent plus its skills in the current project:
afh pull yoyo/hello-harness --into claude-code --model sonnet
Into Codex, as skills in the current project:
afh pull yoyo/hello-harness --into codex
codex -m <model>
Or download the files into a new folder and look at them first:
afh pull yoyo/hello-harness
Add @<version> to pin an exact version, for example yoyo/hello-harness@0.1.0. Without it you get the latest.
4. Use it in Claude Code or Codex
In Claude Code, ask for the subagent by name or let Claude pick it. The --model you chose is written into the subagent, and you can change it later in .claude/agents/<name>.md. Codex picks its model when it starts, with codex -m.
Harnesses with a python, node or container runtime ship their own code, so they’re only downloaded, never installed or run by afh run. Read the code before you run it.
Next
- Running a harness: models, keys, what it may touch
- What
--intoinstalls, and where - Publish your own harness