Skip to main content

one-setup-all-agents

One setup for all your AI coding agents. A shared agent config for Claude Code, Codex, OpenCode and Antigravity: write your config once, give every agent the same setup, and use one journal for recovery and undo.

Status: pre-alpha. The four public commands (init, sync, status, undo) are implemented with full engine safety guarantees (atomic writes, journaled operations, backups, and undo). Real-world verification against live tool environments is in progress. Do not install it expecting a finished production release.

Why

If you use more than one AI coding agent, you keep the same things in several places: your global instructions, your MCP servers, your skills. Each tool stores them in a different file with a different format, and they drift apart. Syncing them by hand is tedious, and a sync tool that rewrites your real config files is scary.

one-setup-all-agents is built around the second problem. It does not try to support the most tools. It tries to be the one you trust with your real config:

  • Write once. One source config; every detected tool gets the same instructions, MCP servers and skills.
  • Safe by default. sync shows a dry run first. Every write is atomic, backed up and recorded.
  • Journaled recovery and undo. all-agents undo recovers unfinished work or reverses the last completed operation.
  • Nothing to trust blindly. Zero runtime dependencies (Python standard library only). Secrets are referenced by environment-variable name; their values are never read from your environment, printed, or written by all-agents into your configs (backups keep exact copies of the files they protect).

Quick Start (5 minutes)

Try it in dry-run mode without installing:

uvx one-setup-all-agents init --dry-run

Or install with pipx:

pipx install one-setup-all-agents

1. Import your existing setup

Detect your installed tools and import existing instructions, MCP servers, and skills into the shared config:

all-agents init

Expected output:

Detected tools:
  Claude Code (claude): installed (~/.claude)
  Codex (codex): installed (~/.codex)
Import proposal:
  - Instructions: imported
  - MCP servers (2): imported
  - Skills (1): imported
initialised operation 20261110T024601Z-71bf
the safety snapshot is kept permanently

2. Review and apply changes to all agents

Preview the planned changes across all tools, then confirm to apply:

all-agents sync

Expected output:

Plan: 2 change(s), 0 conflict(s)
To run:
  1. edit file ~/.claude/CLAUDE.md: write the shared instructions
  2. edit file ~/.codex/AGENTS.md: write the shared instructions
Apply these changes? [y/N]: y
applied operation 20261110T024601Z-3b2f

3. Verify that all agents match

Check the status of every tool and kind of configuration:

all-agents status

Expected output:

Claude Code (claude): in sync
  instructions: in sync
  mcp: in sync
  skills: in sync
Codex (codex): in sync
  instructions: in sync
  mcp: in sync
  skills: in sync
Undoable operations: 2

4. Reverse any change if needed

Undo the last operation with exact byte or CLI inversion from the journal:

all-agents undo

Expected output:

undone operation 20261110T024601Z-3b2f (sync)
1 more can be undone

Config Locations

Source configuration and engine state locations follow standard platform conventions (see ADR 0002):

OS Shared Config (config_dir) Engine State (state_dir)
Windows %APPDATA%/one-setup-all-agents %LOCALAPPDATA%/one-setup-all-agents
Linux $XDG_CONFIG_HOME/one-setup-all-agents (or ~/.config/...) $XDG_STATE_HOME/one-setup-all-agents (or ~/.local/state/...)
macOS ~/.config/one-setup-all-agents ~/.local/state/one-setup-all-agents

Overrides: Setting ALL_AGENTS_CONFIG_DIR or ALL_AGENTS_STATE_DIR overrides the default paths on all operating systems.

How Secrets Work

one-setup-all-agents operates under a zero-secret-exposure principle:

  • Variable References Only: Secrets (API keys, tokens, auth headers) are referenced strictly by environment-variable name (e.g. ${GITHUB_TOKEN} or Authorization: Bearer ${NAME}).
  • No Secret Values: Cleartext secret values are never requested, read from your environment, printed to stdout/stderr, or added by all-agents to mcp.jsonc or tool configs (servers it does not own, and keys it does not manage, are kept as they are); however, init snapshots and operation backups copy existing tool config files byte for byte into the private state directory (0700 dirs, 0600 files on POSIX), so pre-existing literal secrets in those files stay in the backups (see Secrets and Variable References).
  • CLI Guard: If an adapter must run an external CLI (such as claude mcp add-json), arguments are scanned to ensure no secret values are passed on the process command line.

For the full mcp.jsonc schema, variable reference rules, per-tool translations, and limits, see the MCP servers guide.

Supported tools

Tool Adapter id v0.1 (global scope) Windows Linux macOS Notes
Claude Code claude partial verified (2.1.319, 2026-11-10) fixtures only (CI) fixtures only (CI) MCP is written through the tool's own CLI, because running sessions also write its config file.
Codex codex partial verified (0.167.0, 2026-11-10) fixtures only (CI) fixtures only (CI) Only a managed region of its TOML config is edited.
OpenCode opencode partial verified (2.2.6, 2026-11-10) fixtures only (CI) fixtures only (CI) First adapter to be ported (simplest).
Antigravity (agy) agy partial verified (1.5.1, 2026-11-10) fixtures only (CI) fixtures only (CI) Does not follow Windows junctions, so each skill is listed in its skills.json manifest by the path of the source folder. Has no variable reference for secrets, so an http server with headers is not written.

Windows verification was conducted live against the installed CLI binaries for each supported tool. Linux verification executed the full test suite in Ubuntu (WSL2), with tool binaries marked fixtures only as they were not installed in the WSL environment per the maintainer gate decision. macOS verification is performed on GitHub Actions hosted runners (macos-latest) against test fixtures without tool logins. See individual verification reports in docs/verification/ for details.

CI runs the tests on Windows, Linux and macOS.

Safety Model

one-setup-all-agents is designed to be the tool you trust with your real developer environment:

  • Dry-run by default: sync shows a detailed change plan before asking for confirmation.
  • Atomic file writes: Config files are written using temporary siblings and atomic replacements; incomplete writes never corrupt your setup.
  • Private permissions: State directories are created with 0700 and journal files with 0600 on POSIX systems.
  • Automatic backups: Every modified file is backed up before any write occurs.
  • Unified journal: All operations (file edits, links, CLI calls) are recorded with exact inverse actions in an append-only journal.
  • Drift detection: undo checks that file contents match what was written. If you edited a file manually after running sync, ordinary undo requires --force to overwrite your edits. During manual CLI recovery, --force acknowledges the reconciled steps and drift checks still apply.
  • Unfinished CLI changes: If a tool command fails or is interrupted, status reports the unfinished operation and sync refuses to proceed. Run all-agents undo --recover OP_ID with the reported operation ID. If recovery reports an uncertain forward or inverse command, ensure the child process has stopped and restore the tool state from just before the original forward step. Then run all-agents undo --recover OP_ID --force to acknowledge that step and continue recovery. If an inverse fails during recovery, inspect and reconcile that step before acknowledging it in a separate invocation. Targeted recovery refuses a finished or missing operation ID, so a stale hint leaves completed work in place.

Known Boundaries & Limits

  • Antigravity HTTP headers: Antigravity does not support environment-variable expansion in HTTP headers; remote MCP servers requiring authorization headers are flagged as unsupported and skipped.
  • Windows Junctions: Antigravity does not follow directory junctions; skills are referenced by direct directory paths in skills.json.
  • Codex Overrides: If a non-empty AGENTS.override.md is present in Codex config, all-agents flags a conflict rather than silently writing inactive instructions.
  • Claude Code CLI: Claude Code configuration is maintained through claude mcp CLI calls to avoid race conditions with running Claude sessions. Parameters not supported by the CLI (like cwd) are flagged as unsupported.

Roadmap

  • v0.1: The four public commands (init, sync, status, undo), global scope, for instructions, MCP servers, and skills.
  • v0.2: Project scope, including safety and permissions for shared repositories you do not own.
  • Later: Hooks, granular tool permissions, memory, and accounts.

Development

pip install -e .
python -m unittest discover -s tests

Do not install it expecting stability while in pre-alpha.

Decisions are recorded in docs/decisions. To add a tool, see docs/adding-a-tool.md and CONTRIBUTING.md. Security policy and vulnerability disclosure are in SECURITY.md. Rules for AI tools working in this repository are in AGENTS.md.

License

MIT. See LICENSE.

Metadata

Release files for one-setup-all-agents 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for one-setup-all-agents 0.1.1
File Size Uploaded Provenance Actions
one_setup_all_agents-0.1.1.tar.gz 400.1 kB With provenance Details for one_setup_all_agents-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for one-setup-all-agents 0.1.1
File Interpreter ABI Platform Actions
one_setup_all_agents-0.1.1-py3-none-any.whl Python 3 none any Details for one_setup_all_agents-0.1.1-py3-none-any.whl

Total release size: 564.4 kB

Release files / one_setup_all_agents-0.1.1.tar.gz

Download URL one_setup_all_agents-0.1.1.tar.gz
Size 400.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8800e7943ea001047fee2a666516a1d15bb7b142ab0064eae331448ccb5111dc
BLAKE2b-256 checksum
How to use checksums
8ff1c2520adc66ec8919763beb0db2be5dd27828f03d58774dc799e7b67f5f10
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / one_setup_all_agents-0.1.1-py3-none-any.whl

Download URL one_setup_all_agents-0.1.1-py3-none-any.whl
Size 164.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9ce8e62795c0d8f0e4bf00a541740d381d1193fa87fe08b2559027f3b4e0818b
BLAKE2b-256 checksum
How to use checksums
8fc7c40d63519a0b4ef9e23c7d8fcb2eeff20e16864cdfd22bb23161efdbe8a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Security for one-setup-all-agents 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for one_setup_all_agents-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page