OpenAgentSwarms
Every command
Command

oas harness

Print, or with --apply run, the command that adds the swarm's tools to Claude Code or Codex.

$ oas harness claude-code|codex [flags]

3 flagsreads OAS_HOMEdefined in cmd/oas/main.go, runHarness

Both harnesses name the server swarm, so each harness's config holds one membership at a time. Start a new session afterwards.

Arguments

  • claude-code|codex

    The harness to add the tools to.

    claude-codecodex

Flags

Each takes one dash or two, and its value after a space or =. A switch is on by itself, or =false.

Environment

  • OAS_HOME

    Where memberships, settings and the cache live. Default ~/.openagentswarm.

Examples

Runs claude mcp add --scope user swarm -- oas mcp --dir …

$ oas harness claude-code --agent founder --apply

Prints codex mcp add swarm -- oas mcp --dir …

$ oas harness codex --agent cx-otter

See also

Read from the CLI: each flag's type, default and usage are its flag set's own, and a test fails when this page and the code disagree.