@askgigi/cli

中文文档
2.1289.0发布于 2026/11/02MITES Module近 30 天下载 2003

Search your Gigi professional network from the command line, or expose it to a local agent over MCP.

原始使用文档
文档目录7 节
  1. Start here
  2. Things to ask
  3. Signing in
  4. If you are a product signing in on someone's behalf
  5. When something goes wrong
  6. What it will not do
  7. For scripts and agents

Gigi

Ask your AI assistant who you know.

Gigi turns your contacts, calendar history and confirmed profile context into a searchable professional network — the people you have actually met, emailed and worked with. This package brings that network to your assistant, and to your terminal.

You need a Gigi account. Nothing else.


Start here

If your AI assistant can run a command — Claude Code, Codex, Cursor, Grok, and most coding agents:

claude mcp add gigi -- npx -y @askgigi/cli mcp

That's it. Ask it "who do I know at Stripe?" and it will use your network instead of guessing.

If you'd rather use a terminal:

npm install -g @askgigi/cli
gigi login       # opens a page to approve; takes about ten seconds
gigi help        # every command, with an example you can copy

If your assistant takes a URL rather than a command, you don't need this package at all — paste https://mcp.gigi.co/mcp into its connector settings.


Things to ask

Once it's connected, these all work in plain language:

  • Who do I know at Stripe?
  • Find backend engineers I have actually met in person, closest first.
  • Who in my network could introduce me to someone at a Series B fintech?
  • Remind me who Ada is and how I know her.

From the terminal, the same questions look like this:

gigi context                 # what you can search, and how many people it reaches
gigi search --input '...'    # one search; run `gigi help search` for the example
gigi more   --input '...'    # the next page
gigi paths  --input '...'    # who can introduce you to the people you name
gigi connect --input '...'   # ask a contact to become a Key Person, or invite them
gigi requests                # what is pending, both ways
gigi respond --input '...'   # accept, decline, remind or cancel one of them
gigi suggest                 # who to add or invite next

A search takes twenty to sixty seconds — it reads your network rather than a keyword index — and tells you what it's doing while it works.


Signing in

gigi login

It prints a short code and a link. Open the link anywhere — your laptop, your phone — approve it, and you're done. Press Enter and it opens the page for you; --open skips the asking.

The machine running gigi never needs a browser of its own, which is what makes this work inside an AI agent's sandbox.

Your session lives in ~/.config/gigi/credentials.json, readable only by you. gigi logout revokes it properly, server-side, not just locally.

If you are a product signing in on someone's behalf

Say who you are, once, at login:

gigi login --client-name instinct

Every caller signs in as the same client, so without this Gigi cannot tell your traffic from anyone else's and records the session as unknown. It is a label for Gigi's own reporting: it grants nothing, it is not checked against anything, and leaving it out is not an error. gigi status shows what the current session declared.


When something goes wrong

Every failure prints one line of JSON with a name you can act on:

It saysWhat to do
authentication-requiredRun gigi login.
invalid-argumentsRun gigi help <command> — it prints a working example.
device-code-expiredThe code timed out. gigi login again.
rate-limitedSixty requests a minute, shared across everything you've connected. Wait a moment.
search-timeoutThe search ran long. Try a narrower one.
tool-unavailableYour account doesn't have that tool yet. gigi paths and gigi connect arrive with Gigi's second tool set.
device-flow-unavailableThat server doesn't offer device login. Update the CLI, or connect over MCP instead.

Stuck? [email protected].


What it will not do

It reads, on purpose: it searches, looks people up, reads profiles and finds the paths to someone. What it can change, when you ask it to: send a Key People request to a contact you name (gigi connect), exactly as the Connect button in Gigi does — that contact is notified and decides — and act on a pending request (gigi respond): accept or decline one you received, remind or cancel one you sent, as the lists on your Network page do. It cannot send an introduction, write a message, or change anything else in Gigi, and it only ever sees what you can already see there.

gigi paths, gigi connect, gigi requests, gigi respond and gigi suggest need Gigi's second tool set on your account; until it is there they answer tool-unavailable.


For scripts and agents

  • stdout is exactly one line of JSON per command. Nothing else goes there.
  • stderr carries progress and errors.
  • Exit codes: 0 worked, 2 your arguments were wrong, 1 everything else.

gigi help --json returns the whole command catalogue, examples included.

SettingWhat it does
--server <url> / GIGI_MCP_SERVER_URLPoint at another Gigi. Defaults to production.
--client-name <name> / GIGI_CLI_CLIENT_NAMEOptional, on gigi login only. Name the product driving this CLI, so Gigi can tell its traffic apart. Letters, digits, spaces, dots, underscores and hyphens, up to 40 characters.
GIGI_CREDENTIALS_PATHWhere the session is stored. A .lock file beside it serialises renewals between concurrent gigi processes.
GIGI_HTTP_TIMEOUT_MSPer-request timeout, default 30000. Searches get their own, longer, budget.
GIGI_DEBUGPrint a stack trace on an unexpected failure.

MIT licensed. Built by the team at Gigi.

版本与发布记录

@askgigi/cli 共发布 11 个版本,首次发布于 2026/10/26;过去 12 个月发布了 11 个版本。

版本发布日期距今
2.1289.0latest2026/11/025 天前
0.1.82026/10/308 天前
0.1.72026/10/309 天前
0.1.62026/10/299 天前
0.1.52026/10/299 天前
0.1.42026/10/299 天前

关于 @askgigi/cli 的常见问题

@askgigi/cli 是什么?

Search your Gigi professional network from the command line, or expose it to a local agent over MCP.

如何安装 @askgigi/cli?

在项目目录运行 npm install @askgigi/cli,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 gigi,可以用 npx gigi 直接运行。

@askgigi/cli 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/askgigi__cli 是否存在。

@askgigi/cli 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@askgigi/cli 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=22。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@askgigi/cli 可以商用吗?

@askgigi/cli 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@askgigi/cli 的下载量有多少?

根据 npm 官方下载统计,@askgigi/cli 在 2026/10/07 – 2026/11/05 这 30 天内被下载 2,003 次,日均约 67 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@askgigi/cli 还在维护吗?

最新版本 2.1289.0 发布于 2026/11/02(5 天前);至今共发布 11 个版本,其中过去 12 个月发布了 11 个;首次发布于 2026/10/26。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。