← 全部工具

@ai-support-agent/cli

热度 65 更新于 AI 与 Agent

AI Support Agent CLI client

npmauto-collected

安装

npm
npm install -g @ai-support-agent/cli

通过 npm 安装。

AI Support Agent CLI

A daemon that turns your machine into an AI-powered remote agent. Install it, authenticate via browser, and your team can send shell commands, AI chat prompts, file operations, and more — all from a Web UI, with results streamed back in real time.

┌──────────────┐  AppSync     ┌─────────────────┐  WebSocket/HTTP  ┌──────────────────┐
│   Web UI     │ ──────────── │   API Server    │ ─────────────── │  Agent CLI       │
│  (browser)   │  subscription│   (NestJS)      │  commands/result │  (your machine)  │
└──────────────┘              └─────────────────┘                  └──────────────────┘
                                                                     ├─ Claude Code
                                                                     ├─ Shell / PTY
                                                                     ├─ File I/O
                                                                     ├─ Git repos
                                                                     ├─ MCP server
                                                                     └─ VS Code tunnel

Why?

  • Remote AI pair-programming — Ask questions about your codebase from the Web UI; Claude Code runs on the agent machine with full repository access.
  • Multi-tenant, multi-project — A single agent manages multiple projects across different tenants. Add/remove projects on the fly; the agent hot-reloads.
  • Zero-config realtime — AppSync WebSocket subscriptions deliver commands instantly. No polling delay, no port forwarding.
  • Secure by default — OAuth login, 0600 config permissions, nonce-protected callbacks, SQL injection detection, path traversal guards, and environment sanitization.

Hosted Service

The quickest way to get started is with the managed service at ai-support-agent.com. Create an account there, then the CLI connects to it out of the box — these are the built-in defaults, so no extra flags are needed:

| Endpoint | URL | Role | |----------|-----|------| | Product site | ai-support-agent.com | Landing page — sign up and learn more | | Web console | app.ai-support-agent.com | The Web UI where you send commands and watch results. Also the OAuth target that login opens in your browser (default --url). | | API | https://api.ai-support-agent.com | Agent ↔ server API the daemon talks to (default --api-url). |

Running ai-support-agent login opens the hosted web console (app.ai-support-agent.com) in your browser, where you sign in and pick the tenant and project to link.

Self-hosting? The CLI is not tied to the hosted service. Point it at your own deployment with --url / --api-url (or the AISUPPORTAGENTAPIURL environment variable) — see Configuration.

Quick Start

npm install -g @ai-support-agent/cli

# Opens app.ai-support-agent.com in your browser → sign in → select tenant & project → done
ai-support-agent login

# Start the daemon (Ctrl-C to stop)
ai-support-agent start

That's it. The agent registers with the server, syncs project config, clones repositories, and starts listening for commands.

Add more projects

ai-support-agent add-project          # browser OAuth flow
ai-support-agent status               # verify registered projects

Start with a Personal Access Token (agent scope)

Instead of the browser OAuth flow, you can start an agent with a Personal Access Token (PAT) that you issue for yourself in the web app. Issue a PAT whose scope includes agent and whose projectCode is set, then start the agent under your own permissions ("personal plan"):

# The tenant comes from the token; the project is given with --project.
ai-support-agent start --token <tenantCode>:<tokenId>:<rawToken> --project <tenantCode>/<projectCode>