bankai-cli
v0.6.19
Published
Launch coding agent CLIs with approval-bypass flags
Downloads
268
Maintainers
Readme
bankai
▗▄▄▄▖
████▖▄▄▄▄ ▄▄▄
▗█▙▄▄▄▄▄▄▄▄▄▄▄▄▄ ▗▄▄ ▗▟██████████▄▝██████████████▙▄
▝▜█████████████▀▘ ▝████▖ ▗▟██▛▘ ▗███▀▘ ▀▀▜██▛▘ ▐███▀▀▘
▜██▛ ▐███ ▄▟██▛▘ ▗███▘ ▐██▌ ▐███
▐██▌ ▐███ ▀▀▀▘ ▗███▙▄▄▄▖ ▗██▛▗▄ ▗███▌
▐██▌ ▐███ ▗▟█████████▀▀█████▖▗██▘ ▝██████
▐██▌ ███▌ ▝███▌ ██▌ ████▀▄▟█ ▜███▀▀▀
▗▄▄▄▄▄▄▄▄▄▄▄▟██▙▄▄▄▄▄▄█████ ▐██▙▄▄██▙▄▄███▌ ▐██▙▄▄███▙▄▄██▙▖
█████████▀▀▀▜██▛▀▀▀▀▀▀▀▀▜██ ▝███▀▀██▛▀▀███ ▟██▀▀▀▜██▛▀▀▀▀▀▘
███▌ ▐██▌ ▐██▌ ██▌ ███ ▟██▘ ▐██▌
███▌ ▐██▌ ▐██▙▄▄████▙███▗██▄▄▄▄▄▟█████████▄
███▌ ▐██▌ ██▛▀▀▀▀ ▐██▌▀███▛▀▀▜██▛▀▀▀▀▀▀▀
███▌ ▐██▌ ▗██▘ ▐██▌ ▐██▌
▗███▘ ▗███▙▄▄▄▄▄▄▄▄▄▄ ▟█▛ ▗▄▄▖ ███▌ ▝██▌
▐███ ▜███████████████▙ ▗██▘ ▀███████▌ ██▌
▀▀ ▀▀ ▀▀▘ ▝▀████▘ ██▘
CLI tool that launches coding agent CLIs with approval-bypass flags.
Requirements
- Node.js >= 20.12.0
Install
npm install -g bankai-cli
# or: pnpm add -g bankai-cli
# or: bun install -g bankai-cliUsage
# Launch a specific agent with bypass flags
bankai claude
# Pass args directly to the target agent
bankai codex -C /path/to/project
# Interactive agent picker
bankai
# List all supported agents
bankai agents
# List only agents installed on your system
bankai agents --installedSupported Agents
CLI Agents (flag output)
| Agent | Command | Docs |
| ------------------ | -------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
| Claude Code | claude --dangerously-skip-permissions | Settings - Claude Code Docs |
| Codex CLI | codex --dangerously-bypass-approvals-and-sandbox | CLI Reference - OpenAI Codex |
| GitHub Copilot CLI | copilot --allow-all-tools | Copilot CLI Docs |
| Gemini CLI | gemini --yolo | Configuration - Gemini CLI |
| OpenHands | openhands --always-approve | CLI Mode - OpenHands Docs |
| Aider | aider --yes-always | Options Reference - aider |
| Qwen Code | qwen-code --yolo | Approval Mode - Qwen Code Docs |
| Kimi Code | kimi --yolo | Interaction Guide - Kimi Code Docs |
Settings Agents (config file / DB modification)
| Agent | Target | Description |
| ---------------- | ------------------------------------------------ | --------------------------------------------------------------------- |
| OpenCode (GLM) | ~/.config/opencode/opencode.json / opencode.json | bankai opencode-glm — OpenCode on Z.AI's GLM models (see Env Vars) |
| Cursor Agent CLI | .cursor/cli.json / ~/.cursor/cli-config.json | Writes permission allow-list for Cursor Agent CLI |
| Cursor IDE | SQLite DB (state.vscdb) | Applies settings below, then launches Cursor |
Cursor IDE (bankai cursor)
Unlike CLI agents that pass a flag, Cursor IDE stores its settings in a SQLite DB. bankai cursor modifies the DB directly to apply the following, then opens Cursor:
| Setting | Effect | | -------------------------------------------- | --------------------------------------------------- | | Auto-Run Mode → Run Everything (Unsandboxed) | Agent runs all commands without sandboxing | | Browser Protection → OFF | Agent can run browser tools automatically | | MCP Tools Protection → OFF | Agent can run MCP tools automatically | | File-Deletion Protection → OFF | Agent can delete files automatically | | External-File Protection → OFF | Agent can create/modify files outside the workspace | | Dot-files Protection → OFF | Agent can modify dotfiles (.env, etc.) |
Cursor must be restarted after the first apply for changes to take effect.
Custom Agents
Register agents not in the built-in list:
# Non-interactive
bankai add --cmd opencode --line "opencode --yolo"
# Interactive
bankai add
# Edit an existing custom agent
bankai edit opencode
# Remove a custom agent
bankai remove opencodeCustom agents are stored in ~/.config/bankai/agents.json (XDG-compliant, varies by OS).
Env Vars
Any agent (built-in or custom) may define an env map that is injected into the
agent process at launch — useful for pointing a tool at an alternate, API-compatible
backend without editing its config files or maintaining shell aliases.
Values support ${VAR} interpolation against your current environment, so secrets
never need to be written into the agent definition. A ${VAR} that is unset
resolves to an empty string and prints a warning. Literal values pass through unchanged.
OpenCode on GLM (Z.AI)
bankai opencode-glm launches OpenCode against Z.AI's GLM
Coding Plan endpoint (provider zai-coding-plan, see models.dev),
pinning the model per launch:
opencode --model zai-coding-plan/glm-5.2The provider is configured in your global OpenCode config
(~/.config/opencode/opencode.json) with an env placeholder — the key itself is
never written to disk; OpenCode resolves it from your shell at runtime:
{
"provider": {
"zai-coding-plan": {
"options": { "apiKey": "{env:ZAI_API_KEY}" }
}
}
}Set your key once, then run:
export ZAI_API_KEY="your-z.ai-api-key" # or source it from a secret manager
bankai opencode-glm # aliases: claude-glm, claude-zaiBecause the model is passed via --model (not written into config), plain opencode
runs in the same project keep their own default model. To use a different GLM model,
register a custom agent that overrides opencode-glm with your own launch line.
Development
bun install
bun run dev -- claude # Run from source
bun run build # Build to dist/
bun run test # Run tests