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

anyint-cli

v0.0.7

Published

Anyint CLI - Terminal AI assistant powered by Anyint Gateway

Readme

Anyint CLI

Terminal AI assistant powered by Anyint Gateway.

English | 中文


What is Anyint CLI?

Anyint CLI (anyint) is an interactive terminal AI assistant. It connects to the Anyint Gateway to provide AI chat, an intelligent Agent with tool-calling capabilities, and one-click deployment workflows — all from your terminal.

All inference uses the gemini-2.5-flash model.

Features

  • AI Chat — Stream AI responses powered by gemini-2.5-flash with markdown rendering
  • Markdown Rendering — Code blocks, headers, lists, and tables rendered beautifully in the terminal
  • Agent Mode — Powered by Claude Agent SDK, with built-in tools:
    • File operations (Read, Write, Edit, Glob, Grep)
    • Shell commands (Bash)
    • Web search & page fetching
    • Anyint platform tools (balance, models, API keys, usage logs)
    • Task management with progress tracking
  • One-Click Deployanyint deploy openclaw installs, configures, and starts OpenClaw automatically
  • Account Management — Check balance, create API keys, view usage logs
  • OAuth Login — Secure browser-based Casdoor authentication
  • Escape to Interrupt — Press Esc to stop any streaming response

Installation

npm install -g anyint-cli

Or install from source:

git clone <repo-url>
cd anyint-cli
pnpm install
pnpm build
npm link

Usage

# Start interactive REPL
anyint

# Login (opens browser)
anyint login

# Chat (uses gemini-2.5-flash)
anyint chat

# Agent mode (with tool calling)
anyint chat --agent

# Check balance
anyint user balance

# Create an API key
anyint key create

# View usage logs
anyint usage logs

# One-click deploy OpenClaw
anyint deploy openclaw

# Set gateway URL
anyint config --url https://gateway.api.anyint.ai

Commands

| Command | Description | |---|---| | anyint | Interactive REPL mode | | anyint login | Browser-based OAuth login | | anyint chat | AI chat with streaming (gemini-2.5-flash) | | anyint chat --agent | Agent mode with tool calling | | anyint user balance | View USDC account balance | | anyint key create | Create a new API key | | anyint usage logs | View usage and billing logs | | anyint deploy openclaw | One-click OpenClaw deployment | | anyint config | View current configuration | | anyint config --url <url> | Set gateway URL |

Chat Commands

While in chat, these slash commands are available:

| Command | Description | |---|---| | /clear | Clear chat history | | /exit or /quit | Exit chat | | Esc | Interrupt current response |

Agent Mode

Agent mode (anyint chat --agent) uses the Claude Agent SDK to provide an AI assistant with tool-calling capabilities:

┌─────────────────────────────────────────┐
│  Agent Tools                            │
├─────────────────────────────────────────┤
│  Built-in:                              │
│    Read, Write, Edit, Bash,             │
│    Glob, Grep                           │
│                                         │
│  Anyint Platform:                       │
│    get_balance, list_models,            │
│    create_api_key, get_usage_logs,      │
│    manage_tasks                         │
│                                         │
│  Web:                                   │
│    web_search, fetch_url                │
└─────────────────────────────────────────┘

The agent can read and write files, execute shell commands, search the web, manage your Anyint account, and orchestrate complex multi-step tasks autonomously.

Configuration

Config is stored at ~/.anyint/config.json:

{
  "gateway_url": "https://gateway.api.anyint.ai",
  "access_token": "...",
  "user_info": {
    "id": "...",
    "name": "..."
  }
}

Tech Stack

| Component | Technology | |---|---| | CLI Framework | Commander.js | | Terminal UI | Ink 5 (React 18) | | Agent Engine | Claude Agent SDK | | AI Model | gemini-2.5-flash | | Markdown | marked + marked-terminal | | Build | tsup (esbuild) | | Language | TypeScript |

Requirements

  • Node.js 18+
  • An Anyint Gateway account

License

Proprietary. All rights reserved.


什么是 Anyint CLI?

Anyint CLI (anyint) 是一个交互式终端 AI 助手。它连接 Anyint Gateway,提供 AI 对话、带工具调用的智能 Agent,以及一键部署能力 — 全部在终端中完成。

所有推理使用 gemini-2.5-flash 模型。

功能特性

  • AI 对话 — 基于 gemini-2.5-flash 的流式 AI 回复,支持 Markdown 渲染
  • Markdown 渲染 — 代码块、标题、列表、表格在终端中美观展示
  • Agent 模式 — 基于 Claude Agent SDK,内置工具:
    • 文件操作(Read、Write、Edit、Glob、Grep)
    • Shell 命令(Bash)
    • 网页搜索与页面抓取
    • Anyint 平台工具(余额、模型、API Key、用量日志)
    • 任务管理与进度追踪
  • 一键部署anyint deploy openclaw 自动安装、配置并启动 OpenClaw
  • 账户管理 — 查看余额、创建 API Key、查看用量日志
  • OAuth 登录 — 基于浏览器的 Casdoor 安全认证
  • Esc 中断 — 按 Esc 键可随时中断流式输出

安装

npm install -g anyint-cli

或从源码安装:

git clone <repo-url>
cd anyint-cli
pnpm install
pnpm build
npm link

使用方式

# 启动交互模式
anyint

# 登录(打开浏览器)
anyint login

# 对话(使用 gemini-2.5-flash)
anyint chat

# Agent 模式(带工具调用)
anyint chat --agent

# 查看余额
anyint user balance

# 创建 API Key
anyint key create

# 查看用量日志
anyint usage logs

# 一键部署 OpenClaw
anyint deploy openclaw

# 设置网关地址
anyint config --url https://gateway.api.anyint.ai

命令列表

| 命令 | 说明 | |---|---| | anyint | 交互式 REPL 模式 | | anyint login | 浏览器 OAuth 登录 | | anyint chat | AI 对话(gemini-2.5-flash) | | anyint chat --agent | Agent 模式(工具调用) | | anyint user balance | 查看 USDC 账户余额 | | anyint key create | 创建新的 API Key | | anyint usage logs | 查看用量和计费日志 | | anyint deploy openclaw | 一键部署 OpenClaw | | anyint config | 查看当前配置 | | anyint config --url <地址> | 设置网关地址 |

对话内命令

在对话中可以使用以下斜杠命令:

| 命令 | 说明 | |---|---| | /clear | 清空对话历史 | | /exit/quit | 退出对话 | | Esc | 中断当前回复 |

Agent 模式

Agent 模式(anyint chat --agent)使用 Claude Agent SDK,提供带工具调用的 AI 助手:

┌─────────────────────────────────────────┐
│  Agent 工具                              │
├─────────────────────────────────────────┤
│  内置工具:                               │
│    Read, Write, Edit, Bash,             │
│    Glob, Grep                           │
│                                         │
│  Anyint 平台:                           │
│    get_balance, list_models,            │
│    create_api_key, get_usage_logs,      │
│    manage_tasks                         │
│                                         │
│  网络工具:                               │
│    web_search, fetch_url                │
└─────────────────────────────────────────┘

Agent 可以读写文件、执行 Shell 命令、搜索网页、管理 Anyint 账户,并自主编排复杂的多步骤任务。

配置

配置文件存储在 ~/.anyint/config.json

{
  "gateway_url": "https://gateway.api.anyint.ai",
  "access_token": "...",
  "user_info": {
    "id": "...",
    "name": "..."
  }
}

技术栈

| 组件 | 技术 | |---|---| | CLI 框架 | Commander.js | | 终端 UI | Ink 5 (React 18) | | Agent 引擎 | Claude Agent SDK | | AI 模型 | gemini-2.5-flash | | Markdown 渲染 | marked + marked-terminal | | 构建工具 | tsup (esbuild) | | 语言 | TypeScript |

环境要求

  • Node.js 18+
  • Anyint Gateway 账户

许可证

专有软件,保留所有权利。