npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

bankai-cli

v0.6.19

Published

Launch coding agent CLIs with approval-bypass flags

Downloads

268

Readme

bankai

                                       ▗▄▄▄▖
                                        ████▖▄▄▄▄             ▄▄▄
▗█▙▄▄▄▄▄▄▄▄▄▄▄▄▄      ▗▄▄             ▗▟██████████▄▝██████████████▙▄
▝▜█████████████▀▘     ▝████▖        ▗▟██▛▘  ▗███▀▘   ▀▀▜██▛▘  ▐███▀▀▘
            ▜██▛        ▐███       ▄▟██▛▘   ▗███▘       ▐██▌   ▐███
            ▐██▌        ▐███       ▀▀▀▘    ▗███▙▄▄▄▖   ▗██▛▗▄ ▗███▌
            ▐██▌        ▐███       ▗▟█████████▀▀█████▖▗██▘ ▝██████
            ▐██▌        ███▌        ▝███▌  ██▌  ████▀▄▟█  ▜███▀▀▀
▗▄▄▄▄▄▄▄▄▄▄▄▟██▙▄▄▄▄▄▄█████         ▐██▙▄▄██▙▄▄███▌ ▐██▙▄▄███▙▄▄██▙▖
█████████▀▀▀▜██▛▀▀▀▀▀▀▀▀▜██          ▝███▀▀██▛▀▀███  ▟██▀▀▀▜██▛▀▀▀▀▀▘
 ███▌       ▐██▌                     ▐██▌  ██▌  ███ ▟██▘   ▐██▌
 ███▌       ▐██▌                     ▐██▙▄▄████▙███▗██▄▄▄▄▄▟█████████▄
 ███▌       ▐██▌                     ██▛▀▀▀▀    ▐██▌▀███▛▀▀▜██▛▀▀▀▀▀▀▀
 ███▌       ▐██▌                    ▗██▘        ▐██▌       ▐██▌
▗███▘      ▗███▙▄▄▄▄▄▄▄▄▄▄          ▟█▛   ▗▄▄▖  ███▌       ▝██▌
▐███       ▜███████████████▙       ▗██▘    ▀███████▌        ██▌
  ▀▀         ▀▀                    ▀▀▘       ▝▀████▘        ██▘


npm version CI License: MIT Node.js Open in Visual Studio Code

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-cli

Usage

# 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 --installed

Supported 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 opencode

Custom 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.2

The 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-zai

Because 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