{"id":50747161,"url":"https://github.com/illdynamics/jamini","last_synced_at":"2026-06-10T22:02:05.364Z","repository":{"id":357393125,"uuid":"1236539062","full_name":"illdynamics/jamini","owner":"illdynamics","description":"The Gemini CLI tool, wired to Deepseek as the brain. Your favourite workflow up to 200x cheaper and fully functional!","archived":false,"fork":false,"pushed_at":"2026-05-22T12:26:02.000Z","size":975,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-22T17:53:12.387Z","etag":null,"topics":["agentic-ai","agentic-coding","ai-agents","ai-tools","deepseek-v4","gemini-cli"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/illdynamics.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":"docs/security.md","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-05-12T10:43:30.000Z","updated_at":"2026-05-22T12:26:05.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/illdynamics/jamini","commit_stats":null,"previous_names":["illdynamics/demoni","illdynamics/jamini"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/illdynamics/jamini","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/illdynamics%2Fjamini","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/illdynamics%2Fjamini/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/illdynamics%2Fjamini/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/illdynamics%2Fjamini/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/illdynamics","download_url":"https://codeload.github.com/illdynamics/jamini/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/illdynamics%2Fjamini/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34172196,"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-10T02:00:07.152Z","response_time":89,"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":["agentic-ai","agentic-coding","ai-agents","ai-tools","deepseek-v4","gemini-cli"],"created_at":"2026-06-10T22:02:04.526Z","updated_at":"2026-06-10T22:02:05.354Z","avatar_url":"https://github.com/illdynamics.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jamini\n\n**Production-grade Gemini CLI drop-in replacement routing to DeepSeek V4 models.**\n\nRun `jamini` instead of `gemini`. Same flags, same interactive behavior, same tool calls.\nBut your prompts go to DeepSeek V4 models via your `DEEPSEEK_API_KEY` — no Google account or API key needed.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./jamini.jpg\" alt=\"Jamini\" width=\"80%\"\u003e\n\u003c/p\u003e\n\nCurrent version: `v0.2.3` (from [`VERSION`](./VERSION)).\n\nRelease notes: [`RELEASE-NOTES.md`](./RELEASE-NOTES.md)\n\n## Install\n\nJamini runs in **process mode** by default (`node` child process — no container needed). A Docker/Podman container image is also available. Pick your install method:\n\n### Option 1: curl | bash (recommended)\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/illdynamics/jamini/main/scripts/install.sh | bash\n```\n\nThis downloads the latest release zip, extracts it, builds the container image, and installs the `jamini` command to `~/bin/jamini`. The `@google/gemini-cli` npm package is installed automatically.\n\n### Option 2: Git clone\n\n```bash\ngit clone https://github.com/illdynamics/jamini.git\ncd jamini\n./jamini install\n```\n\n### Option 3: Manual download\n\n```bash\n# Grab the latest release from:\n#   https://github.com/illdynamics/jamini/releases/latest\nunzip jamini-v0.2.3.zip\ncd jamini-v0.2.3\n./jamini install\n```\n\n### After install\n\n```bash\n# Add ~/bin to PATH (add this to ~/.zshrc or ~/.bashrc)\nexport PATH=\"${HOME}/bin:${PATH}\"\n\n# Set your DeepSeek API key\nexport DEEPSEEK_API_KEY=\"sk-...\"\n\n# You're ready!\njamini --help\njamini -y \"explain this codebase\"\n```\n\n### Requirements\n\n- **Node.js 20+** (for process mode) **or** **Docker/Podman** (for container mode)\n- **curl** and **unzip** — for the curl | bash installer\n- **Linux** or **macOS** — Windows via WSL2 works too\n\n## Model Selection\n\nJamini exposes exactly four models:\n\n| Model | DeepSeek Backend | Thinking | Best For |\n|-------|-----------------|----------|----------|\n| `v4-flash` | `deepseek-v4-flash` | off | Fast daily coding, inspection |\n| `v4-flash-thinking` | `deepseek-v4-flash` | on | Fast reasoning, debugging |\n| `v4-pro` | `deepseek-v4-pro` | off | Heavy coding, reviews |\n| `v4-pro-thinking` | `deepseek-v4-pro` | on | Deep architecture, hard bugs |\n\n```bash\njamini -m v4-flash \"quick question\"\njamini -m v4-flash-thinking \"think through this bug\"\njamini -m v4-pro \"refactor this module\"\njamini -m v4-pro-thinking \"design the new API\"\n```\n\n## YOLO / Dangerous Mode\n\nAuto-approve all tool actions. **Only use in disposable VMs, containers, or trusted workspaces.**\n\n```bash\njamini -y -m v4-pro-thinking \"run tests and fix failures\"\njamini --yolo -m v4-flash \"refactor all files\"\njamini --approval-mode=yolo -m v4-pro-thinking \"migrate the database\"\n```\n\n## Architecture\n\n```\njamini (CLI wrapper)\n  ├── Starts local bridge HTTP server (Express)\n  │     └── Translates Gemini GenerateContent ↔ DeepSeek Chat Completions\n  ├── Sets GOOGLE_GEMINI_BASE_URL → http://127.0.0.1:{port}\n  ├── Sets GEMINI_API_KEY → jamini-local-placeholder\n  ├── Writes Gemini CLI settings (forces API key auth, disables OAuth)\n  └── Spawns upstream @google/gemini-cli (unmodified)\n```\n\n**Gemini CLI source is never modified.** Jamini wraps it with environment variables, config files, and a local translation bridge.\n\nFor a deep dive, see [`docs/architecture.md`](./docs/architecture.md).\n\n## Environment Variables\n\n| Variable | Required | Description |\n|----------|----------|-------------|\n| `DEEPSEEK_API_KEY` | **Yes** | Your DeepSeek API key |\n| `JAMINI_MODEL` | No | Default model (default: `v4-flash-thinking`) |\n| `JAMINI_HOME` | No | Config directory (default: `~/.jamini`) |\n| `JAMINI_BRIDGE_PORT` | No | Fixed bridge port (default: ephemeral / auto) |\n| `JAMINI_BRIDGE_MODE` | No | Bridge launch mode: `auto`, `process`, `container`, `external` |\n| `JAMINI_DEBUG` | No | Set to `1` for debug logging |\n| `BRAVE_API_KEY` | No | Enable web search tool (optional) |\n| `UNSTRUCTURED_API_KEY` | No | Enable document extraction (optional) |\n\n## Config File\n\n`~/.jamini/config.json`:\n\n```json\n{\n  \"defaultModel\": \"v4-flash-thinking\"\n}\n```\n\n## Development\n\n```bash\n# Install deps\nnpm install\ncd bridge \u0026\u0026 npm install\n\n# Build\nnpm run build\n\n# Run test suite (144 tests, 7 skipped)\nnpm test\n\n# Full preflight (build + typecheck + lint + test + pack + hygiene)\nnpm run preflight\n\n# Start dev mode (uses tsx)\nnpm run dev -- --help\n```\n\n## Troubleshooting\n\n**\"DEEPSEEK_API_KEY is required\"**  \nExport your key: `export DEEPSEEK_API_KEY=\"sk-...\"`\n\n**\"Unsupported Jamini model\"**  \nUse one of: `v4-flash`, `v4-flash-thinking`, `v4-pro`, `v4-pro-thinking`\n\n**Gemini CLI tries to open browser for Google login**  \nThis is a bug in Jamini's auth suppression. Run with `JAMINI_DEBUG=1` and file an issue. Jamini writes settings to force API-key auth mode.\n\n**Port conflict on 7654**  \nSet `JAMINI_BRIDGE_PORT=7655` or let Jamini find a free port automatically.\n\n**DeepSeek 401 / authentication failed**  \nCheck your `DEEPSEEK_API_KEY` is valid and has credits.\n\n**Streaming stops early**  \nSet `JAMINI_STREAM_IDLE_TIMEOUT_MS=1200000` for longer streams.\n\nFor more troubleshooting, see [`docs/troubleshooting.md`](./docs/troubleshooting.md).\n\n## CI / Release\n\nJamini uses GitHub Actions for continuous integration and automated releases.\n\n- **CI workflow** (`.github/workflows/ci.yml`): Runs on every push and PR — static checks, build \u0026 test, package verification, Docker smoke tests.\n- **Release workflow** (`.github/workflows/release.yml`): Triggers after CI and only runs on version tags (`v*`). Creates a GitHub Release with a zip archive.\n\nA release is created automatically when a tag matching `v*` (e.g. `v0.2.3`) is pushed and all CI checks pass.\n\n## Acceptance Criteria\n\n- [x] Clean install from repo works\n- [x] `jamini --help` shows help with Jamini model docs\n- [x] Only `DEEPSEEK_API_KEY` needed (no Google auth)\n- [x] `/models` returns only 4 Jamini models\n- [x] Streaming works (SSE via text/event-stream)\n- [x] Tool calls round-trip with ID preservation\n- [x] countTokens returns estimate without crashing\n- [x] YOLO flags pass through\n- [x] Model validation rejects unsupported models\n- [x] Docker image is lean (Node.js only, no Postgres/Julep)\n- [x] All 144 tests pass (151 total, 7 skipped)\n- [x] Gemini CLI source is not modified\n\n## License\n\nApache 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filldynamics%2Fjamini","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Filldynamics%2Fjamini","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filldynamics%2Fjamini/lists"}