{"id":50802445,"url":"https://github.com/felipeadeildo/claude-code-profiles","last_synced_at":"2026-06-12T21:33:17.046Z","repository":{"id":352726000,"uuid":"1216328704","full_name":"felipeadeildo/claude-code-profiles","owner":"felipeadeildo","description":"Manage multiple Claude Code profiles: switch accounts, providers, and env vars with one command","archived":false,"fork":false,"pushed_at":"2026-06-01T16:21:28.000Z","size":724,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-01T16:25:41.799Z","etag":null,"topics":["bash-script","claude","claude-ai","claude-code"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/felipeadeildo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-20T19:50:10.000Z","updated_at":"2026-06-01T15:09:50.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/felipeadeildo/claude-code-profiles","commit_stats":null,"previous_names":["felipeadeildo/claude-code-profiles"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/felipeadeildo/claude-code-profiles","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipeadeildo%2Fclaude-code-profiles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipeadeildo%2Fclaude-code-profiles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipeadeildo%2Fclaude-code-profiles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipeadeildo%2Fclaude-code-profiles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/felipeadeildo","download_url":"https://codeload.github.com/felipeadeildo/claude-code-profiles/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipeadeildo%2Fclaude-code-profiles/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34263872,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash-script","claude","claude-ai","claude-code"],"created_at":"2026-06-12T21:33:11.225Z","updated_at":"2026-06-12T21:33:12.093Z","avatar_url":"https://github.com/felipeadeildo.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003eccp: Claude Code Profiles\u003c/h1\u003e\n\n  \u003cp\u003eSwitch between Claude Code setups with a single command.\u003cbr\u003eDifferent accounts, different providers, different models — each in its own profile.\u003c/p\u003e\n\n  \u003cp\u003eNo dependencies. Works with bash, zsh, and fish.\u003c/p\u003e\n\n  [![Version](https://img.shields.io/github/v/release/felipeadeildo/claude-code-profiles?label=version\u0026color=58a6ff)](https://github.com/felipeadeildo/claude-code-profiles/releases/latest)\n  [![License](https://img.shields.io/github/license/felipeadeildo/claude-code-profiles?color=3fb950)](LICENSE)\n\n\u003c/div\u003e\n\n---\n\n## Install\n\n```bash\ncurl -fsSL https://ccp.fa.dev.br/install.sh | bash\n```\n\nThen reload your shell:\n\n| Shell | Command |\n|-------|---------|\n| bash  | `source ~/.bashrc` |\n| zsh   | `source ~/.zshrc` |\n| fish  | `source ~/.config/fish/conf.d/ccp.fish` |\n\nThe installer detects your shell automatically. For fish, it installs a native `ccp.fish` function to `~/.config/fish/conf.d/` — no need to source anything on the next shell launch.\n\n## Quickstart\n\n```bash\nccp new work       # create a profile (interactive wizard)\nccp work           # launch claude with that profile\nccp use work       # export its vars into your current shell\n```\n\n## How it works\n\nA profile is a `.env` file under `~/.ccp/profiles/`. Each profile gets an isolated `CLAUDE_CONFIG_DIR` — separate settings, history, and todos per profile.\n\n```\n~/.ccp/\n  profiles/\n    work.env\n    personal.env\n    openrouter.env\n  config              # stores the default profile name\n  data/               # isolated CLAUDE_CONFIG_DIR per profile\n```\n\nExample profile:\n\n```bash\n# ~/.ccp/profiles/work.env\nCLAUDE_CONFIG_DIR=~/.ccp/data/work\nANTHROPIC_BASE_URL=https://openrouter.ai/api\nANTHROPIC_API_KEY=sk-or-...\n```\n\n## Commands\n\n```\nccp list                   list all profiles\nccp new \u003cprofile\u003e          create a profile (interactive)\nccp show \u003cprofile\u003e         show vars (keys masked)\nccp edit \u003cprofile\u003e         open in $EDITOR\nccp remove \u003cprofile\u003e       delete a profile\n\nccp [\u003cprofile\u003e] [flags]    launch claude (with optional profile and claude flags)\nccp use \u003cprofile\u003e          export vars into current shell\nccp run \u003cprofile\u003e \u003ccmd\u003e    run any command with profile vars\n\nccp default [profile]      get or set the default profile\nccp doctor                 validate all profiles\nccp version                show current version\nccp update                 update to the latest release\n```\n\n**Shorthand**: `ccp work --resume` launches claude with the `work` profile and passes `--resume` directly to claude. Bare `ccp` uses the default profile.\n\n**`ccp use` vs `ccp \u003cprofile\u003e`**: use `ccp use` when you want vars to persist in your shell session. The shorthand spawns a subprocess — vars are scoped to that invocation only.\n\n## Providers\n\n| Provider       | `ANTHROPIC_BASE_URL`                     | Auth var                      |\n|----------------|------------------------------------------|-------------------------------|\n| Anthropic      | *(leave blank)*                          | `ANTHROPIC_API_KEY`           |\n| OpenRouter     | `https://openrouter.ai/api`              | `ANTHROPIC_API_KEY`           |\n| z.ai (GLM)     | `https://api.z.ai/api/anthropic`         | `ANTHROPIC_AUTH_TOKEN`        |\n| Kimi           | `https://api.moonshot.ai/anthropic`      | `ANTHROPIC_AUTH_TOKEN`        |\n| DeepSeek       | `https://api.deepseek.com/anthropic`     | `ANTHROPIC_AUTH_TOKEN`        |\n| Ollama (local) | `http://localhost:11434`                 | `ANTHROPIC_AUTH_TOKEN=ollama` |\n\nThe interactive wizard sets the right auth variable automatically.\n\n## Model mapping\n\nClaude Code internally requests `claude-opus`, `claude-sonnet`, etc. If your provider uses different model names, map them in the profile:\n\n```bash\nANTHROPIC_DEFAULT_OPUS_MODEL=glm-4.6\nANTHROPIC_DEFAULT_SONNET_MODEL=glm-4.6\nANTHROPIC_DEFAULT_HAIKU_MODEL=glm-4.5-air\n```\n\nThe wizard asks for these optionally when creating a profile.\n\n## Updating\n\n```bash\nccp update    # downloads and installs the latest release\nccp version   # show current version\n```\n\nccp checks for updates in the background and notifies you when a new version is available.\n\n---\n\n*Want to contribute? See [CONTRIBUTING.md](CONTRIBUTING.md).*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelipeadeildo%2Fclaude-code-profiles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffelipeadeildo%2Fclaude-code-profiles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelipeadeildo%2Fclaude-code-profiles/lists"}