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

axrun

v2.2.0

Published

Unified CLI runner for AI coding agents with normalized event streaming

Readme

axrun

AI agent runner CLI. Runs AI coding agents through a unified interface.

Installation

npm install -g axrun

Usage

# Run a prompt with an agent
axrun --agent claude "Add error handling to auth.ts"
axrun -a codex "Fix the bug in main.ts"
axrun -a gemini "Refactor the utils module"
axrun -a opencode --provider anthropic "Add logging"
axrun -a copilot "Write tests"

# Specify a model
axrun -a claude --model opus "Review this PR"
axrun -a gemini --model gemini-2.5-pro "Refactor utils"
axrun -a opencode --provider anthropic --model claude-sonnet-4 "Add tests"

# Set permissions
axrun -a claude --allow 'read,glob,bash:git *' "Check git history"

# Output normalized JSONL event stream
axrun -a claude -f jsonl "Add tests" | jq 'select(.type == "tool.call")'

# Run inside external sandbox (Podman)
# Note: No host env vars are passed through for isolation; credentials are injected via --vault-credential or AX_*_CREDENTIALS
axrun -a claude --sandbox --sandbox-image ghcr.io/jercik/axkit-sandbox:latest "Review this PR"

# List available agents
axrun --list-agents

Options

-a, --agent <id>           Agent to use (claude, codex, gemini, opencode, copilot)
-p, --prompt <text>        Prompt text (alternative to positional argument)
-m, --model <model>        Model to use (agent-specific)
--provider <provider>      Provider for OpenCode: anthropic, openai, google (google = gemini models)
--allow <perms>            Permission rules to allow (comma-separated)
--deny <perms>             Permission rules to deny (comma-separated)
--sandbox                  Run axexec inside an external sandbox (Podman container via axsandbox; requires --sandbox-image)
--sandbox-image <image>    Sandbox image (must include axexec; required with --sandbox)
--sandbox-include <dir>    Include host directory (repeatable, mounted read-only at /include/<name>)
--sandbox-mount <spec>     Bind mount mapping <host>:<container>[:ro|rw] (repeatable, default ro)
--sandbox-persist          Keep sandbox container running after the run
--vault-credential <name>  Fetch credentials from vault (requires AXVAULT or AXVAULT_URL+AXVAULT_API_KEY)
--preserve-github-sha      Keep GITHUB_SHA env var (Gemini excludes by default)
-f, --format <fmt>         Output format: jsonl, tsv (sandbox default: jsonl)
--raw-log <file>           Write raw agent JSONL output to file (use relative paths with --sandbox)
--debug                    Enable debug mode (logs unknown events)
--list-agents              List available agents
-V, --version              Show version number
--help                     Show help

Supported Agents

| Agent | Package | API Key Env Var | | -------- | ------------------------- | --------------------- | | claude | @anthropic-ai/claude-code | ANTHROPIC_API_KEY | | codex | @openai/codex | OPENAI_API_KEY | | gemini | @google/gemini-cli | GEMINI_API_KEY | | opencode | opencode-ai | ANTHROPIC_API_KEY (†) | | copilot | @github/copilot | GITHUB_TOKEN |

(†) OpenCode supports multiple providers. Use --provider to specify which provider to use (anthropic, openai, google).

CI/CD Usage

Using Vault (Recommended)

Fetch credentials from a centralized vault server:

axrun --agent claude --vault-credential ci-oauth-token "Review this PR"

Required: Set AXVAULT env var with vault URL and API key as JSON:

{ "url": "https://vault.example.com", "apiKey": "axv_sk_..." }

See axvault for vault setup.

Using Credential Environment Variables

For CI/CD pipelines without vault, credentials can be passed via environment variables:

# Export credentials locally (one-time setup)
axauth export --agent claude --output creds.json --no-password

# Store as repository secret (e.g., AX_CLAUDE_CREDENTIALS)

# axrun auto-detects and installs credentials
axrun --agent claude --prompt "Review this PR"

| Agent | Credential Env Var | | -------- | ----------------------- | | claude | AX_CLAUDE_CREDENTIALS | | codex | AX_CODEX_CREDENTIALS | | gemini | AX_GEMINI_CREDENTIALS | | opencode | AX_OPENCODE_CREDENTIALS | | copilot | AX_COPILOT_CREDENTIALS |

For Claude, you can also use CLAUDE_CODE_OAUTH_TOKEN (generated via claude setup-token).

License

MIT