~ / rigs / hishamkaram / claude-code-router

hishamkaram/claude-code-router

A local gateway that routes Claude Code sessions to OpenAI-compatible and Anthropic-compatible models, with same-session switching and visible compatibility behavior.

↗ GitHub ★ 10 MIT updated 1mo ago project Claude CodeCodex
share on X
ARCHETYPE
YOLO Cowboy
Permissions? Never heard of 'em. Ships at the speed of `--dangerously-skip-permissions`.
CONTEXT TAX · EVERY TURN
~1.5k tokens
Featherweight · median rig: 2.3k · breakdown
GUARDRAILS
0/5
No committed guardrails · details
Quality 3/100 Guardrails v2

Copy this rig

# review before running: this installs third-party code
$ npx degit hishamkaram/claude-code-router/agents ./rig-claude-code-router/agents
$ npx degit hishamkaram/claude-code-router/skills ./rig-claude-code-router/skills

MCP servers are added to Claude Code at local scope; env vars are shown as YOUR_… placeholders — we never store values. Files are fetched with degit into a separate folder so you can review before merging.

$ npx degit hishamkaram/claude-code-router/skills/cli-ux .claude/skills/cli-ux
$ npx degit hishamkaram/claude-code-router/skills/docs-updater .claude/skills/docs-updater
$ npx degit hishamkaram/claude-code-router/skills/go-concurrency .claude/skills/go-concurrency
$ npx degit hishamkaram/claude-code-router/skills/go-implementer .claude/skills/go-implementer
$ npx degit hishamkaram/claude-code-router/skills/go-reviewer .claude/skills/go-reviewer
$ npx degit hishamkaram/claude-code-router/skills/go-test-writer .claude/skills/go-test-writer
$ npx degit hishamkaram/claude-code-router/skills/live-e2e .claude/skills/live-e2e
$ npx degit hishamkaram/claude-code-router/skills/release .claude/skills/release
$ npx degit hishamkaram/claude-code-router/skills/research .claude/skills/research
$ npx degit hishamkaram/claude-code-router/skills/router-architect .claude/skills/router-architect
$ npx degit hishamkaram/claude-code-router/skills/security-auditor .claude/skills/security-auditor
$ curl -fsSL --create-dirs -o .claude/agents/ai-agent-quality-contract.md https://raw.githubusercontent.com/hishamkaram/claude-code-router/main/agents/_data/ai-agent-quality-contract.md
$ curl -fsSL --create-dirs -o .claude/agents/cli-contract.md https://raw.githubusercontent.com/hishamkaram/claude-code-router/main/agents/_data/cli-contract.md
$ curl -fsSL --create-dirs -o .claude/agents/code-quality-floor.md https://raw.githubusercontent.com/hishamkaram/claude-code-router/main/agents/_data/code-quality-floor.md
$ curl -fsSL --create-dirs -o .claude/agents/engineering-quality-gate.md https://raw.githubusercontent.com/hishamkaram/claude-code-router/main/agents/_data/engineering-quality-gate.md
$ curl -fsSL --create-dirs -o .claude/agents/live-e2e-contract.md https://raw.githubusercontent.com/hishamkaram/claude-code-router/main/agents/_data/live-e2e-contract.md
$ curl -fsSL --create-dirs -o .claude/agents/maintainability-quality-gate.md https://raw.githubusercontent.com/hishamkaram/claude-code-router/main/agents/_data/maintainability-quality-gate.md
$ curl -fsSL --create-dirs -o .claude/agents/router-product-invariants.md https://raw.githubusercontent.com/hishamkaram/claude-code-router/main/agents/_data/router-product-invariants.md
$ curl -fsSL --create-dirs -o .claude/agents/secret-storage-contract.md https://raw.githubusercontent.com/hishamkaram/claude-code-router/main/agents/_data/secret-storage-contract.md
$ curl -fsSL --create-dirs -o .claude/agents/source-of-truth.md https://raw.githubusercontent.com/hishamkaram/claude-code-router/main/agents/_data/source-of-truth.md
$ curl -fsSL --create-dirs -o .claude/agents/architect.md https://raw.githubusercontent.com/hishamkaram/claude-code-router/main/agents/architect.md
$ curl -fsSL --create-dirs -o .claude/agents/docs-updater.md https://raw.githubusercontent.com/hishamkaram/claude-code-router/main/agents/docs-updater.md
$ curl -fsSL --create-dirs -o .claude/agents/go-concurrency.md https://raw.githubusercontent.com/hishamkaram/claude-code-router/main/agents/go-concurrency.md
$ curl -fsSL --create-dirs -o .claude/agents/go-implementer.md https://raw.githubusercontent.com/hishamkaram/claude-code-router/main/agents/go-implementer.md
$ curl -fsSL --create-dirs -o .claude/agents/go-reviewer.md https://raw.githubusercontent.com/hishamkaram/claude-code-router/main/agents/go-reviewer.md
$ curl -fsSL --create-dirs -o .claude/agents/go-test-writer.md https://raw.githubusercontent.com/hishamkaram/claude-code-router/main/agents/go-test-writer.md
$ curl -fsSL --create-dirs -o .claude/agents/researcher.md https://raw.githubusercontent.com/hishamkaram/claude-code-router/main/agents/researcher.md
$ curl -fsSL --create-dirs -o .claude/agents/security-auditor.md https://raw.githubusercontent.com/hishamkaram/claude-code-router/main/agents/security-auditor.md

This rig commits no guardrails. Here is the community baseline instead — the deny/ask rules most often found across all 16.2k rigs:

{
  "permissions": {
    "deny": [
      "Read(./.env)",
      "Read(./.env.*)",
      "Read(**/.env)",
      "Read(~/.ssh/**)",
      "Bash(git push --force:*)",
      "Read(**/*.pem)",
      "Read(.env)",
      "Read(~/.aws/**)",
      "Read(**/*.key)",
      "Read(**/.env.*)",
      "Bash(git push --force*)",
      "Bash(rm -rf:*)",
      "Bash(rm -rf *)",
      "Bash(sudo *)",
      "Bash(sudo:*)",
      "Bash(rm -rf /)",
      "Bash(git push -f:*)",
      "Read(.env.*)",
      "Bash(git reset --hard*)",
      "Bash(rm -rf /*)"
    ],
    "ask": [
      "Bash(git push:*)",
      "Bash(git push *)",
      "Bash(gh pr merge *)",
      "Bash(git commit:*)",
      "Bash(rm *)",
      "Bash(gh pr merge:*)",
      "Bash(gh pr create *)",
      "Bash(git reset --hard:*)",
      "Bash(npm publish:*)",
      "Bash(git rebase *)"
    ]
  }
}

Skills (11)

Subagents (17)

ai-agent-quality-contract—
cli-contract—
code-quality-floor—
engineering-quality-gate—
live-e2e-contract—
maintainability-quality-gate—
router-product-invariants—
secret-storage-contract—
source-of-truth—
architect—
docs-updater—
go-concurrency—
go-implementer—
go-reviewer—
go-test-writer—
researcher—
security-auditor—

Similar rigs

copied ✓