@agentconnect.md/setup

中文文档
2.13.0发布于 2026/11/11Apache-2.0ES Module零依赖构建来源已验证近 30 天下载 3.3万

AgentConnect self-hosted Setup Server

原始使用文档
文档目录3 节
  1. Run with Docker Compose
  2. Run from source
  3. Configuration ownership

@agentconnect.md/setup

Browser-based Setup Server for AgentConnect self-hosting. It configures Logto, GitHub, GitLab, Gitea, Slack, Google Chat, Linear, Google, Feishu, and Lark through one authenticated local operator surface. Provider identities and write-only credentials are stored in the deployment database; the UI never returns stored secret values.

This package has no command-line setup interface. Provider creation, match checks, edits, secret replacement, and clearing a provider configuration all happen in Setup.

Run with Docker Compose

The local authentication stack includes Setup Server:

docker compose -f compose.yaml -f compose.logto.yaml up -d

Open:

  • Setup: http://localhost:8091
  • Logto Console: http://localhost:3002
  • AgentConnect: http://localhost:3000

Setup first guides the operator through Logto Management API setup. It does not display deployment configuration until an administrator has signed in. The first signed-in user is assigned the shared ADMIN role; sign in once more so the refreshed token contains that role.

Google is the shortest local sign-in path because its Web OAuth client accepts the bundled bare localhost origins. Slack remains disabled until every required public service URL uses HTTPS.

Managed Azure DevOps repository selection requires console sign-in through Logto with Microsoft account linking (azuread) enabled. Each person uses their existing linked Microsoft account; no additional Azure DevOps authorization is requested. The loopback no-auth stack cannot create or increase these repository grants. Connecting and maintaining the organization's Azure application still uses the existing management flow. See Azure DevOps, People.

An organization that signs in through its own identity provider can choose Single sign-on (OIDC or SAML) instead of a social provider. Setup first asks Logto to create the connector and shows the redirect URI (OIDC) or the ACS URL and SP entity ID (SAML) to register with the identity provider; the provider's issuer and client, or its SAML metadata, come next, together with at least one email domain: Logto offers no sign-in through a connector without one. An identity provider on a private network also needs its address in LOGTO_SSRF_ALLOWED_ADDRESSES.

Run from source

Start the database and optional Logto services, then run the server directly:

pnpm --filter @agentconnect.md/setup dev

The process reads the repository .env and listens on 127.0.0.1:8091 by default. HOST and PORT control the binding. DATABASE_URL and the SECRET_CIPHER/VAULT_* root settings remain startup environment because they are needed before the deployment database can be opened.

The public service base URLs are also startup environment. Control Plane and Relay URLs may include an ingress path prefix:

AGENTCONNECT_PUBLIC_WEB_URL=https://gateway.example.test
AGENTCONNECT_PUBLIC_CP_URL=https://gateway.example.test/cp
AGENTCONNECT_PUBLIC_RELAY_URL=https://gateway.example.test/relay

Setup shows these values at the top because GitHub and Slack manifests, the GitLab redirect URI, and the Google Chat HTTP endpoint derive from them. Change the environment and restart Setup Server before applying updated provider settings.

Configuration ownership

Each provider has one card containing its current IDs, masked secret state, match status, and edit/create/clear controls. Clearing a provider removes its stored identity and secrets so its creation flow becomes available again.

Saved deployment changes are startup configuration rather than hot reload. Restart the consuming services after editing:

docker compose restart control-plane relay web

Setup Server is bound to loopback in the supplied Compose stack. For a remote host, forward the port over SSH instead of exposing this HTTP service publicly.

版本与发布记录

@agentconnect.md/setup 共发布 952 个版本,首次发布于 2026/08/06;过去 12 个月发布了 952 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
2.13.0latest2026/11/11今天
2.13.0-rc.102rc2026/11/11今天
2.13.0-rc.1012026/11/11今天
2.13.0-rc.1002026/11/11今天
2.13.0-rc.992026/11/11今天
2.13.0-rc.962026/11/11今天

其他发布通道:bootstrap → 0.0.0,rc → 2.13.0-rc.102。

关于 @agentconnect.md/setup 的常见问题

@agentconnect.md/setup 是什么?

AgentConnect self-hosted Setup Server

如何安装 @agentconnect.md/setup?

在项目目录运行 npm install @agentconnect.md/setup,或使用 pnpm add / yarn add / bun add。

@agentconnect.md/setup 支持 TypeScript 吗?

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

@agentconnect.md/setup 支持 ESM 还是 CommonJS?

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

@agentconnect.md/setup 需要什么版本的 Node.js?

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

@agentconnect.md/setup 可以商用吗?

@agentconnect.md/setup 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@agentconnect.md/setup 的下载量有多少?

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

@agentconnect.md/setup 还在维护吗?

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