Skip to main content

Claude Code Toolbox

GitHub License Ask DeepWiki

Automated installers and an environment configuration framework for Claude Code on Windows, macOS, and Linux.

Define your complete Claude Code environment in a single YAML file -- custom agents, MCP servers, slash commands, hooks, skills, settings, and more -- and install everything with one command.

Features

  • Custom agents -- specialized subagents for code review, research, debugging, and any workflow you design
  • MCP servers -- HTTP, SSE, and stdio transports with scope-based registration; unchanged servers are skipped on reruns, preserving their OAuth authentication
  • Slash commands -- custom commands for frequently used workflows
  • Rules -- user-scope rule files for coding standards, security policies, and project conventions
  • Skills -- multi-file skill packages for complex agent capabilities
  • System prompts -- replace or append to the default Claude Code prompt in the commands an isolated profile installs
  • Hooks -- five hook types: command (hook scripts in shell or exec form, or an installed program on PATH, such as a tool's own hook command, in exec form), HTTP (webhooks), prompt (LLM evaluation), agent (subagent with tools), and MCP tool (a tool on a configured MCP server), plus shared helper modules delivered beside the hook scripts
  • Ready-to-run Python hooks -- Python hooks and status-line scripts run through uv run, and for each one that lists its packages in PEP 723 inline metadata the setup builds its uv environment right after the scripts land, on the same path and with the environment variables your sessions hand the hook, so the first launch inside Claude Code installs nothing; a package that cannot install fails the setup with the script's name and the command to retry, instead of failing the hook within its timeout in a session
  • User and global settings -- user-settings is raw settings.json content (camelCase keys) and global-config is raw ~/.claude.json content, covering model selection, permissions, effort levels, thinking mode, environment variables, and every other Claude Code setting
  • Status line -- custom status bar scripts for real-time session information
  • Configuration inheritance -- extend and override parent configurations with selective per-key merge
  • Component selection -- author-defined component groups the end user picks at setup time, interactively (checkbox picker) or via --select/--with/--without; unclaimed items stay mandatory
  • Isolated profiles -- command-names installs a configuration as a separate profile under ~/.claude/{cmd}/ with its own commands, settings, .claude.json, MCP registrations, and environment loaders; a session of the profile reads nothing from the base profile's ~/.claude wherever you start it, in your home folder included, because the profile's config.json excludes the base CLAUDE.md and rules in every letter case the folder can be spelled in and, on Windows, under the 8.3 short name of your home folder (the spelling of %TEMP%), and the launcher keeps the base settings.json out of a session started in the home folder (that session also loads no CLAUDE.md, CLAUDE.local.md or .mcp.json of the home folder itself; below the home they load as before) and, on Windows, starts the session in the long spelling of the folder you started in -- wherever that folder is, below your home or outside it, with each 8.3 component replaced by the name on disk and the drive letter returned uppercase (c:\work starts in C:\work) -- so a path spelled by 8.3 short names (the spelling of %TEMP%) does not let the base profile's skills, agents and commands in, and one folder always reaches Claude Code as one spelling; an isolated install leaves the base profile's settings.json and .claude.json alone, apart from the installMethod record the Claude Code installer keeps in ~/.claude.json, and names every write outside the profile before you confirm: the binary and its installMethod record, a version pin and its IDE extension, the update controls, the command wrappers, project-scope MCP servers, files-to-download destinations outside the profile, and the dependency commands
  • One configuration, many profiles -- --command-names NAME[,ALIAS...] installs any configuration under the names you give, placing its agents, commands, rules, skills, hooks, and launchers in the isolated profile ~/.claude/NAME, so one YAML file serves as many profiles as you need; NAME,none installs it under one command, a files-to-download destination, a dependency command, or an apiKeyHelper that names the base ~/.claude is re-rooted into the profile and marked [re-rooted] in the summary, and a name another profile or program already holds is refused before anything is written
  • Re-runs that remember -- an update is the install command run again: --profile NAME re-runs an installed profile from its manifest with no configuration argument (base for the base profile, all for every installed profile, each in its own run), the configuration plus the primary name does the same, and both keep the aliases and the component choice the install typed while re-reading everything the configuration declares; a leftover environment variable or a different configuration for an existing profile is held back until you consent, and --switch-config accepts the switch and removes the leftovers the way --remove-leftovers does
  • Leftovers of earlier runs -- every re-run lists the profile files, the destinations outside ~/.claude, the MCP servers, the entries a dependency command installed into the content directories and no command installs any more (such as the skill folders a skills installer no longer copies), and the values, list elements and hook groups of the base settings.json and the base profile's OS environment variables that earlier runs wrote and the configuration no longer installs, in the installation summary, --dry-run and the completion summary, with what it finds at each path (still as written, still wired as a hook, recorded by another profile, changed, gone or now linked); the manifest records the sha256 of every file, settings.json item, OS variable value and MCP server entry a run wrote, and the sha256 of the identity of each entry a dependency command installed (its file ID with its birth time, or with its inode change time on Linux), and carries each leftover still in place to the next run; Step 6 lists the entries no command installs any more; the run that lists one never removes it, and a later run with --remove-leftovers does. --remove-leftovers (or CLAUDE_CODE_TOOLBOX_REMOVE_LEFTOVERS=1) removes them in Step 23, once the new configuration is in place, each only while it still holds what the setup wrote and no settings file still wires it, by its absolute path or below a home token such as ~, $HOME or %USERPROFILE%: a renamed base hook file leaves together with the settings.json hook group that runs it, a dropped hook helper stays while a hook file beside it that the run does not install (a leftover script, or one you put there) is still wired, and the base status line, which Step 18 writes whole on every run, leaves whole, or stays whole once you or Claude Code changed it, while what Claude Code or you wrote into settings.json stays, and a settings.json symlinked from a dotfiles folder stays a link whose target loses the items; a failed content download skips the removal, and a removal that fails keeps the item recorded and ends the run with exit code 1. --profile all --remove-leftovers asks once and hands the flag to every profile, whose report then lists per profile what was removed and what stays and why; a source's refresh of its dependents passes it on too, an accepted --switch-config removes them the same way, and a scheduled run only lists leftovers
  • Scheduled updates -- auto-update: {time: "HH:MM"} gives every profile installed from the configuration one daily job in the OS scheduler (Task Scheduler, launchd, a systemd user timer or cron) that re-runs its setup through uvx cc-toolbox@latest, so the profile follows its configuration and every toolbox release on its own; the jobs never overlap, each run leaves a log, the next manual run reports the last scheduled one, and a private configuration is reached through the stored gh/glab login or a token in the environment the scheduler hands the job
  • Linked profiles -- --link-dirs and --link-from (or the link-dirs and link-from keys) take entries of an isolated profile's directory -- skills, agents, commands, rules, hooks, output-styles, prompts, projects -- through a directory link from another profile: link projects to share sessions and auto-memory with the base profile or any other, or link all to run a second command on the content of a profile installed from the same configuration, which then follows every re-run of its source, refreshes the source first when it is given a configuration its source has not installed yet, takes the files the configuration downloads into a linked directory from the link instead of writing them again, and leaves the Claude Code install, the IDE extension, Node.js and the dependency commands its source runs to the source's run, naming each before you confirm; a profile that links only some content entries leaves the installs to the source and runs every command, because a tool such as the skills CLI writes into the profile that runs it; --run-all-commands makes such a profile do all of that itself
  • Dependency management -- platform-specific package installation (apt, brew, choco, and more), Node.js LTS on request with an installed Node.js kept on the newest release of its LTS line, and a warning when an older npm left in the npm global prefix runs instead of the npm bundled with Node.js
  • File downloads -- arbitrary files downloaded to specified destinations during setup
  • Private repository support -- GitHub and GitLab authentication through GITHUB_TOKEN, GITLAB_TOKEN or REPO_TOKEN, or the stored login of the gh or glab CLI, over HTTPS verified against the operating system's trust store, so the certificate of a self-hosted GitLab whose certificate authority your administrator installed verifies with no further setup
  • Cross-platform -- consistent behavior across Windows, macOS, and Linux
  • One-command setup -- everything from a single YAML configuration file
  • PyPI distribution -- the same setup and installer, runnable as uvx cc-toolbox on any machine with uv

Quick Start

Example Configuration

name: "My Development Environment"

command-names:
  - "my-env"

# Base URL for downloading agents, commands, hooks, and other files
base-url: "https://raw.githubusercontent.com/my-org/my-configs/main"

agents:
  - "agents/code-reviewer.md"

slash-commands:
  - "commands/review.md"

rules:
  - "rules/coding-standards.md"

mcp-servers:
  - name: "context-server"
    transport: "http"
    url: "http://localhost:8000/mcp"
    # ${VAR} in a header is stored as-is and expanded by Claude Code at runtime,
    # so the token stays in your environment, never in the config file.
    header: "Authorization: Bearer ${CONTEXT_SERVER_TOKEN}"

# user-settings holds raw settings.json content with camelCase keys
user-settings:
  model: "sonnet"
  effortLevel: "high"

command-defaults:
  system-prompt: "prompts/system-prompt.md"
  mode: "append"

# Re-run this setup every day at 03:30 local time through the OS scheduler
auto-update:
  time: "03:30"

hooks:
  files:
    - "hooks/linter.py"
  # Shared modules the hook scripts import from their own directory
  helpers:
    - "hooks/hook_config_loader.py"
  events:
    - event: "PostToolUse"
      matcher: "Edit|MultiEdit|Write"
      type: "command"
      command: "linter.py"
    # An installed program on PATH runs in exec form, with its arguments in args
    - event: "SessionStart"
      type: "command"
      command: "my-tool"
      args: ["hook", "session-start"]

This creates a global my-env command that launches Claude Code with your custom agents, MCP servers, and hooks. See the Environment Configuration Guide for all configuration keys.

Install Your Environment

Host your YAML configuration in a repository, then run a single command to set everything up:

Linux:

export CLAUDE_CODE_TOOLBOX_ENV_CONFIG='https://raw.githubusercontent.com/your-org/your-repo/main/config.yaml' && curl -fsSL https://raw.githubusercontent.com/alex-feel/claude-code-toolbox/main/scripts/linux/setup-environment.sh | bash

macOS:

export CLAUDE_CODE_TOOLBOX_ENV_CONFIG='https://raw.githubusercontent.com/your-org/your-repo/main/config.yaml' && curl -fsSL https://raw.githubusercontent.com/alex-feel/claude-code-toolbox/main/scripts/macos/setup-environment.sh | bash

Windows:

powershell -NoProfile -ExecutionPolicy Bypass -Command "`$env:CLAUDE_CODE_TOOLBOX_ENV_CONFIG='https://raw.githubusercontent.com/your-org/your-repo/main/config.yaml'; iex (irm 'https://raw.githubusercontent.com/alex-feel/claude-code-toolbox/main/scripts/windows/setup-environment.ps1')"

Any platform, via PyPI (requires uv):

uvx cc-toolbox setup 'https://raw.githubusercontent.com/your-org/your-repo/main/config.yaml'

# Private repositories: pass tokens inline with --env, or export them as regular environment variables
uvx cc-toolbox setup 'https://raw.githubusercontent.com/your-org/your-repo/main/config.yaml' --env GITHUB_TOKEN=ghp_your-token --env GITLAB_TOKEN=glpat-your-token

# The same configuration as a second isolated profile with its own command
uvx cc-toolbox setup 'https://raw.githubusercontent.com/your-org/your-repo/main/config.yaml' --command-names my-env-2

# Update that profile later: its manifest remembers the configuration, the aliases and the components
uvx cc-toolbox setup --profile my-env-2

# Update every installed profile, the base first
uvx cc-toolbox setup --profile all

# Update a profile and remove what its earlier runs installed and its configuration no longer installs
uvx cc-toolbox setup --profile my-env-2 --remove-leftovers

# Preview, then do the same for every installed profile
uvx cc-toolbox setup --profile all --remove-leftovers --dry-run
uvx cc-toolbox setup --profile all --remove-leftovers

# A profile that shares the sessions and auto-memory of the base profile
uvx cc-toolbox setup 'https://raw.githubusercontent.com/your-org/your-repo/main/config.yaml' --command-names my-env-3 --link-dirs projects

# A second command on the content of my-env-2, refreshed whenever my-env-2 is; the binary, the shared tools and the
# other work my-env-2's run does for the machine are left to that run
uvx cc-toolbox setup 'https://raw.githubusercontent.com/your-org/your-repo/main/config.yaml' --command-names my-env-4 --link-dirs all --link-from my-env-2

# The same profile, this time installing the binary and running every dependency command itself
uvx cc-toolbox setup --profile my-env-4 --run-all-commands

For a persistent cc-toolbox command, install it once with uv tool install cc-toolbox (or pipx install cc-toolbox).

You can also use a local file (./my-config.yaml) or a configuration from a private repository. See the Environment Configuration Guide for all options including authentication.

Ready-Made Configurations

Browse the claude-code-artifacts-public repository for ready-made environment configurations. Find a configuration you like, copy its raw URL, and use it as the CLAUDE_CODE_TOOLBOX_ENV_CONFIG value in the commands above.

See Ready-Made Configurations for installation examples.

Installing Claude Code

If you just need the Claude Code CLI without a custom environment configuration, the toolbox includes standalone installers that use the official Anthropic native installer with automatic npm fallback. With uv present, uvx cc-toolbox install runs the same installer from PyPI.

See the Installing Claude Code guide for platform-specific commands and options.

Documentation

Security

Environment configurations can execute commands on your system, download files, and configure MCP servers. Only use configurations from sources you trust.

Local files are under your control. Remote URLs should be verified before use. The setup script displays a confirmation prompt and flags sensitive paths before proceeding.

See the Security Considerations section for details.

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines.

License

MIT License -- see LICENSE for details.

Disclaimer

This is a community project and is not officially affiliated with Anthropic. Claude Code is a product of Anthropic, PBC.

Getting Help

Metadata

Release files for cc-toolbox 8.7.0

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

Source distribution (sdist)

Source distribution for cc-toolbox 8.7.0
File Size Uploaded Provenance Actions
cc_toolbox-8.7.0.tar.gz 414.8 kB With provenance Details for cc_toolbox-8.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cc-toolbox 8.7.0
File Interpreter ABI Platform Actions
cc_toolbox-8.7.0-py3-none-any.whl Python 3 none any Details for cc_toolbox-8.7.0-py3-none-any.whl

Total release size: 778.0 kB

Release files / cc_toolbox-8.7.0.tar.gz

Download URL cc_toolbox-8.7.0.tar.gz
Size 414.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c29e8d0d7c2fb6f4cd40b07d81129ed6d8aa21822d6103b1efd3a83be424b275
BLAKE2b-256 checksum
How to use checksums
49cbfd2f525cd1d56c14379877db171325a065144666622869ce99f42b5ba2dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Nov 27, 2026.

Transparency log

Release files / cc_toolbox-8.7.0-py3-none-any.whl

Download URL cc_toolbox-8.7.0-py3-none-any.whl
Size 363.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d14f15577499abd8af1f0c071edc63982ac46fc218f7e07bb2ade2f290dfd39a
BLAKE2b-256 checksum
How to use checksums
c3c90b6bdfa610a9b246923e2443611f1d0ecaff066caf1198da6d2774bbcd5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Nov 27, 2026.

Transparency log

Security for cc-toolbox 8.7.0

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 cc_toolbox-8.7.0.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 Nov 27, 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.

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