cogem-cli
A usable BYOK coding-agent CLI — run a coding task on your own Gemini model, right in your terminal. The bridge is fetched and supervised automatically: no Rust toolchain, no setup.
Runs on the Bun runtime.
Install + use
bun add -g cogem-cli
GEMINI_API_KEY=<your-key> cg login
cd my-project
cg run "add a multiply function to math.py"
cg threads
cg logout
After cg login the key is read from the OS keychain, so later runs need no env var (or set GEMINI_API_KEY directly and skip login). A bare cg "<task>" is shorthand for cg run.
CG_MODEL (default gemini-3.5-flash), CG_PORT (default 4011), and CG_DIR (a checked-out cg repo to run a local bridge build instead of the published binary) are optional overrides.