Start cc-profiles on a fake home with sample profiles, projects and memories, to try the UI or a change without touching the real Claude Code profiles. Use when asked to run, try, demo or check the app by hand.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Sandbox?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/andreaiannarone-sandbox)
---
name: sandbox
description: Start cc-profiles on a fake home with sample profiles, projects and memories, to try the UI or a change without touching the real Claude Code profiles. Use when asked to run, try, demo or check the app by hand.
---
# Run cc-profiles on a sandbox
The app writes into Claude Code's own files, so it never runs on the real home folder (see AGENTS.md; the `sandbox_guard.py` hook enforces it). This skill builds a fake home and starts the app on it.
1. Build the fake home. It prints its path:
```sh
.venv/bin/python .claude/skills/sandbox/make_home.py
```
It holds three profiles (Default, Work, Client), skills and MCP servers, projects with conversations, memories and prompt history, one project in two profiles, and one whose folder was moved, so every tab has something to show. Pass a folder as argument to build it there instead of a new temporary one.
2. Start the app on it, in the background, on port 4799 (4777 is the user's real instance):
```sh
HOME="<path from step 1>" CC_PROFILES_AUTO_APP=0 CC_PROFILES_USAGE_URL="file://<path from step 1>/.sandbox-claude-ai-usage.json" .venv/bin/cc-profiles open --port 4799
```
`CC_PROFILES_USAGE_URL` answers the plan's usage limits from a file of the sandbox, so Default's made-up sign-in never reaches claude.ai. `CC_PROFILES_AUTO_APP=0` keeps the server from adding a Mac app to the sandbox at its first start. Such an app runs the installed `cc-profiles` from the Finder, with the real `HOME`: if the sandbox server stopped while its window was open, **Try again** would start cc-profiles on the real profiles. To look at a change to the Mac app itself, add it on purpose (`HOME="<path>" .venv/bin/cc-profiles install-app --port 4799`, after `scripts/build_app.py`), and quit it before stopping the server.
Add `--no-browser` when you only need the API, for example to check a change with `curl`. API calls need the token: read it from the page (`const TOKEN = "…"`) and send it as `X-Token`, with `Host: 127.0.0.1:4799`.
Health shows *Not logged in* for every profile: expected, a sandbox has no credentials.
3. Tell the user the URL, the sandbox path and the `kill <pid>` command that `open` printed. When they are done, stop the server with it. The sandbox is a temporary folder: delete it, or keep it to try again later by repeating step 2 with the same path.
To start from a clean sandbox after a change to the Python code, stop the server, build a new home and start again: the running server does not reload code.