{"id":46565057,"url":"https://github.com/rainoffallingstar/codexswitch","last_synced_at":"2026-03-07T07:01:08.763Z","repository":{"id":342199527,"uuid":"1173146596","full_name":"rainoffallingstar/codexswitch","owner":"rainoffallingstar","description":null,"archived":false,"fork":false,"pushed_at":"2026-03-05T06:29:54.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-05T11:10:53.905Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rainoffallingstar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-03-05T03:49:38.000Z","updated_at":"2026-03-05T06:29:57.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/rainoffallingstar/codexswitch","commit_stats":null,"previous_names":["rainoffallingstar/codexswitch"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/rainoffallingstar/codexswitch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rainoffallingstar%2Fcodexswitch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rainoffallingstar%2Fcodexswitch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rainoffallingstar%2Fcodexswitch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rainoffallingstar%2Fcodexswitch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rainoffallingstar","download_url":"https://codeload.github.com/rainoffallingstar/codexswitch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rainoffallingstar%2Fcodexswitch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30209406,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T05:23:27.321Z","status":"ssl_error","status_checked_at":"2026-03-07T05:00:17.256Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-03-07T07:00:53.801Z","updated_at":"2026-03-07T07:01:08.754Z","avatar_url":"https://github.com/rainoffallingstar.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# codexswitch\n\n`codexswitch` is a small CLI tool for managing multiple Codex provider configs and quickly switching the active one.\n\n## Features\n\n- Add provider configs (`add`)\n- Edit existing provider configs (`edit`)\n- Remove provider configs (`remove`)\n- Copy provider configs with auto suffix (`copy` / `replicate`)\n- List all configured providers (`list`)\n- Switch active provider from CLI (`switch --slug`) or interactive menu (default command)\n- Configurable `reasoning-effort` (`none|minimal|low|medium|high|xhigh`, default `medium`)\n\nProvider files are stored in `~/.codexswitch/\u003cslug\u003e/`, and activation copies files to `~/.codex/`.\nProvider slug must match `[a-z0-9_-]` (1-64 chars, cannot start with `.`).\n\n## Build\n\n### Build local binary\n\n```bash\ngo build -o codexswitch .\n```\n\n### Build static binary (low runtime dependency)\n\n```bash\nCGO_ENABLED=0 go build -trimpath -ldflags='-s -w' -o codexswitch-static .\n```\n\n## Release\n\nRun the `Release` workflow manually (`workflow_dispatch`) in GitHub Actions.\nThe workflow builds static binaries for Linux, macOS, and Windows, then publishes them to a GitHub Release.\nThe release tag is automatically set to the current UTC date (format: `YYYY-MM-DD`).\n\nRelease assets include:\n- `codexswitch-linux-amd64`\n- `codexswitch-macos-amd64`\n- `codexswitch-macos-arm64`\n- `codexswitch-windows-amd64.exe`\n- `SHA256SUMS`\n\n## Usage\n\n### Add provider\n\n```bash\ncodexswitch add \\\n  --slug openai \\\n  --name OpenAI \\\n  --api-key sk-xxx \\\n  --model gpt-4.1 \\\n  --base-url https://api.openai.com/v1 \\\n  --wire-api responses \\\n  --reasoning-effort medium\n```\n\nIf flags are missing in a TTY, prompts will ask for missing fields (including `reasoning-effort`).\n\n### List providers\n\n```bash\ncodexswitch list\n```\n\n### Switch active provider\n\n```bash\ncodexswitch\ncodexswitch switch --slug openai\n```\n\n`codexswitch switch` also supports interactive provider selection in a TTY.\n\n### Edit provider\n\n```bash\ncodexswitch edit --slug openai --model gpt-4.1-mini\ncodexswitch edit --slug openai --reasoning-effort high\n```\n\nWithout `--slug` in interactive mode, you can select a provider from a menu.\n\n### Remove provider\n\n```bash\ncodexswitch remove --slug openai\ncodexswitch remove --slug openai --yes\n```\n\nThe active provider cannot be removed directly.\n\n### Copy provider\n\n```bash\ncodexswitch copy --slug openai\ncodexswitch replicate --slug openai\n```\n\nCreates a new provider using `\u003cslug\u003e-copyN` and `\u003cDisplayName\u003e copyN` (for example `openai-copy1`) without switching the active provider.\n\n## Development\n\n```bash\ngo test ./...\n```\n\nShow help:\n\n```bash\ncodexswitch --help\ncodexswitch switch --help\ncodexswitch add --help\ncodexswitch edit --help\ncodexswitch remove --help\ncodexswitch copy --help\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frainoffallingstar%2Fcodexswitch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frainoffallingstar%2Fcodexswitch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frainoffallingstar%2Fcodexswitch/lists"}