Kortix Connectors 标志

Kortix Connectors

组织热门
kortix-ai
kortix-connectors

Use Kortix connectors to reach external systems from a session, an App, a Convex backend, or an external program. Use the `kortix connectors` CLI for agent work, `@kortix/sdk` for durable TypeScript workflows and for App, backend, and script code, and the hosted Kortix MCP server (`<api>/v1/mcp`) for an MCP client outside Kortix. Load this skill to inspect, add, connect, or call external tools without exposing third-party credentials to the sandbox, an App, or a backend.

Add to TypingMind

概览

发布者kortix-ai
代码仓库CompanyOS
技能名称kortix-connectors
星标数
20.8K
复刻数
3.5K
附带文件
2
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 2 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 kortix-ai 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Kortix Connectors AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/kortix-ai/CompanyOS/tree/dev/packages/starter/templates/managed/skills/kortix-connectors
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kortix-ai/CompanyOS.git /tmp/CompanyOS
mkdir -p .claude/skills
cp -r /tmp/CompanyOS/packages/starter/templates/managed/skills/kortix-connectors .claude/skills/kortix-connectors
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Kortix Connectors,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Kortix Connectors。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Kortix Connectors 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

  • Profile (a connector): ONE way to reach an app, such as Linear over MCP. Its slug is what kortix connectors call <slug> <action> takes. An app is installed once per way.
  • Account: WHO a call runs as. A sign-in on the profile, shared with the workspace or private to one member. One profile holds several.
  • Rule set (a policy set): WHAT one agent may do on the profile. Named tool rules, given to an agent in agents.<name>.policy_sets.

Every call is decided in this order. The first layer with a matching rule decides:

  1. workspace policies: (nothing overrides them);
  2. the calling agent's rule set on this profile;
  3. the profile's base policies:;
  4. sensitive: true → approval;
  5. policy.default_mode.

The gateway holds every credential, applies these rules, runs the call, and audits it. The sandbox carries only KORTIX_TOKEN.

Other reads: kortix connectors discover "<intent>" searches actions; kortix connectors policy <slug> effective shows what each tool does for you and which layer decided.

Every time you call a profile you have not listed accounts for:

  1. kortix connectors accounts <slug> lists them, default first.
  2. One account: call.
  3. Several, and the human named one: pass --account <label|id|me|project> (me = your own private default, project = the shared default).
  4. Several, and it is unclear which one: ASK. With nothing named and nothing pinned the call is refused (account_required). A human pins a default with kortix connectors accounts <slug> --default <label>.

Report which account ran when it could matter: read the result's account.

Which agents can call a profile is two gates, and both must pass: the agent's grant (connectors: in kortix.yaml) and an account the agent may use. A shared account limited to named agents (kortix connectors connections share <connection-id> --agent <name>) refuses every other agent, so a grant alone does not mean the agent can call. kortix connectors agents <slug> answers both. Per agent (--json): may_use (granted, and a shared account allows it), can_call (it can call now) and blocked_by (not_granted, no_account, not_signed_in, policy_set_missing). Per shared account: allowed_agents. Answer "who can use X" from may_use and can_call, never from granted alone, and say when the only allowed account still needs a sign-in. A private account reaches an agent only in its owner's private sessions: it is counted in private_accounts, never credited to an agent.

sh
$ kortix connectors accounts gmail
  LABEL                 CONNECTED AS          OWNER    DEFAULT  CONNECTION ID
  personal@example.com  personal@example.com  private  no       11111111-…
  work@example.com      work@example.com      private  no       22222222-…

Asked "check my gmail" here, ask which mailbox. Told "the work one", call with --account "work@example.com" and say "Checked work@example.com — …".

Another account ("connect my other Gmail"): mint a link with a label, kortix connectors connect <slug> --label "Personal Gmail". The human names the account and chooses who can use it; you are told its name. Never install a second profile to get a second account.

Email inboxes are accounts of kortix_email. Kortix fills in inbox_id:

sh
kortix connectors accounts kortix_email
kortix connectors call kortix_email reply_message \
  '{"thread_id":"<thread-id>","message_id":"<message-id>","text":"Reply text"}' \
  --account "<inbox address>"

A held call returns approval_url: share it, then stop the turn. Approve runs the call once, as you, and your next prompt carries the result. Do not repeat the call: a repeat while it waits returns the same execution_id. A deny, and any message with it, also arrives as your next prompt. A deny with a message is an instruction. kortix review show call:<execution_id> shows the decision and detail.run (the run state and a redacted result).

Read approval_instructions every time. When the response has no runs_on_approval (an older or unscoped token), approval alone does not run the call: when the prompt says approved, repeat the exact same call (same arguments and --account) within 15 minutes, and that call runs once. In a Slack or Teams session Kortix posts the approval card in the thread (approval_instructions says so): do not repost the link.

sh
kortix connectors catalog gmail                     # one row per app
kortix connectors catalog crm --kind mcp,composio   # kortix, mcp, composio, openapi, graphql
kortix connectors catalog notes --one-click         # apps the human connects by signing in
kortix connectors catalog show kortix:gmail         # every way to connect it + its tools

Ways to connect, best first (the first is marked recommended):

  1. built by Kortix (kind: kortix): the channels Slack, Microsoft Teams, Email, Telegram and Discord, and Computer. They are never installed. The human sets them up: kortix channels connect (Slack; --platform teams), kortix channels email inboxes add, Telegram and Discord on their web pages, Computer with npx --yes @kortix/agent-tunnel@latest connect on that machine or the desktop app;
  2. a one-click MCP server: the vendor's own, or Kortix's own for Gmail, Google Calendar, Drive, Docs and Sheets (kortix:gmail, kortix:google_calendar, …: Composio's tool names and arguments, so a Composio skill or rule works unchanged); the human only signs in;
  3. Composio: a third-party partner that runs the sign-in (one click);
  4. an MCP server that needs the human's own OAuth app or key, then the REST (OpenAPI) and GraphQL APIs: they need a key or token after install.
sh
kortix connectors catalog install kortix:linear
kortix connectors catalog install kortix:gmail --name "Support inbox"
kortix connectors catalog install <id> --way <way-id>

Install is idempotent: the same app the same way exits 3 and names the slug it already has. --new-profile makes a second profile; use it only for a human who asks for one. Another way of connecting (Stripe over MCP and over REST) is its own profile: different tools, different sign-in.

The catalog is an index, not a list of what may be connected. Prefer the vendor's own MCP server over Composio whenever it exists. A way marked catalogue has no URL installs with the server URL: get it from the human or the vendor's docs, then kortix connectors catalog install <id> --way <way-id> --url <url>. The catalog is large, not complete. When it lacks the app, search the web for the vendor's MCP server (its developer docs, registry.modelcontextprotocol.io) or OpenAPI spec, then add it:

sh
kortix connectors add acme --provider mcp --url https://mcp.acme.com/mcp --transport http --apply
kortix connectors add acme --provider openapi --spec https://acme.com/openapi.json --apply

Without --apply, add edits the kortix.yaml of the clone you are in (kortix workspaces clone; /workspace has none at boot), landed through a change request. A server URL that neither the catalog publishes nor the workspace already has needs a one-time approval of that exact URL: the answer is custom_connector_needs_human with a setup_url. Hand the human the link; it opens the server prefilled, and adding it is the approval. Do not retry.

Credentials:

  • an API key the human gave you: kortix secrets set NAME=- --scope connector, then kortix connectors secret <slug> NAME;
  • a key you lack: kortix secrets request NAME --scope connector;
  • OAuth2 client credentials (an OpenAPI or HTTP API with a client id and secret): kortix connectors credential <slug> --oauth2-client-credentials --token-url <url> --client-id <id> --client-secret-from - [--scope "<a b>"], secret on stdin. Kortix fetches and refreshes the tokens.

Pipedream exists only for rollback compatibility with already-declared connectors. Never add one. If the catalog and the web have nothing, stop, explain the gap, and ask the human.

yaml
connectors:
  - slug: gmail
    provider: mcp
    url: https://google.mcp.kortix.com/gmail
    policy_sets:
      read_only:
        description: Read and search, never send
        policies:
          - match: /^(send_|reply_to_thread$|forward_message$)/   # every way Gmail sends
            action: block
agents:
  support:
    tools: "*"
    connectors: [gmail]
    policy_sets:
      gmail: read_only

Each command commits kortix.yaml on the default branch and syncs:

sh
kortix connectors policy-sets gmail ls                                  # sets + the agents that use each
kortix connectors policy-sets gmail create read_only --template read-only   # or ask-before-writes
kortix connectors policy gmail --policy-set read_only set "/^(send_|reply_to_thread$|forward_message$)/" block   # ls, set, rm, clear
kortix connectors policy gmail effective --policy-set read_only         # what each tool does now
kortix connectors policy-sets gmail rename read_only readonly           # agents move with it
kortix connectors policy-sets gmail rm readonly                         # refused while an agent uses it
kortix agents scope support --policy-set gmail=read_only                # gmail=base removes the entry
kortix connectors agents gmail                                          # who can call gmail, through which account, with which set
kortix connectors rules                                                 # every agent × every profile
  • A rule about an action covers every tool that does it. List the profile's tools first (kortix connectors catalog tools <app> when no account is signed in, else policy <slug> effective). Gmail sends through send_email, send_draft, reply_to_thread and forward_message, so send_* alone leaves replies and forwards free.
  • A rule for everyone goes in the base rules (kortix connectors policy <slug> set "<match>" ask, no --policy-set). A rule set binds one agent only: you, the person's own token and every other agent keep the base rules.
  • Say what a rule does only after policy <slug> effective shows it.
  • --template read-only blocks every tool that is not a read; ask-before-writes asks for them. Unknown-risk tools count as writes. Check the result with policy <slug> effective.
  • A name is [a-z0-9][a-z0-9_-]{0,63}; base is reserved. Channel profiles and computer hold no sets.
  • Changing any agent's policy_sets needs workspace.agent.write AND workspace.connector.write. Without both in your own grant you cannot change any entry, your own included (403 agent_grant_escalation): ask the human.
  • list_connectors (MCP) shows policy_set per profile: the set YOUR agent runs under, null for base rules.
ts
import { createKortix } from '@kortix/sdk';

const kortix = createKortix({
  backendUrl: process.env.KORTIX_API_URL!,
  getToken: async () => process.env.KORTIX_TOKEN ?? null,
});
const connectors = process.env.KORTIX_PROJECT_ID
  ? kortix.project(process.env.KORTIX_PROJECT_ID).connectors
  : kortix.connectors;

const result = await connectors.call(
  'kortix_email.reply_message',
  { thread_id: '<thread-id>', message_id: '<message-id>', text: 'Reply text' },
  { account: '<inbox address>' },
);
if (!result.ok) throw new Error(`Call failed: ${result.reason ?? result.status ?? 'unknown'}`);

Run scripts with bun run path/to/script.ts. Keep provider credentials out of code and repository files.

Where the code runsCredentialReaches
App, browserbackendUrl: '/_kortix/api/v1' + kortixAppViewerToken() (App set to --viewer api)the viewer's shared and private accounts
App, servercreateAppViewerKortix(request, { backendUrl })the same, per request
Convex action, App job with no viewera service account bearer (kortix_sa_…) in an env varshared accounts nobody narrowed; never a private one
External program, CIa personal access token, kortix tokens new <name> --workspace <id>the token owner's shared and private accounts

A service account is a human step: ask the person to run kortix tokens service-accounts new <name> and kortix access grant --service-account <id> --role member --workspace <id>, and to store the bearer (npx convex env set KORTIX_API_KEY … for Convex; a workspace secret under apps.<slug>.secrets for an App, not named KORTIX_*). Build the rest while you wait. Recipes: references/sdk.md.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Kortix Connectors AI 技能有什么作用?

Use Kortix connectors to reach external systems from a session, an App, a Convex backend, or an external program. Use the `kortix connectors` CLI for agent work, `@kortix/sdk` for durable TypeScript workflows and for App, backend, and script code, and the hosted Kortix MCP server (`<api>/v1/mcp`) for an MCP client outside Kortix. Load this skill to inspect, add, connect, or call external tools without exposing third-party credentials to the sandbox, an App, or a backend.

为什么在 TypingMind 中使用 Kortix Connectors?

因为您只需安装一次,就能搭配任何模型使用。Kortix Connectors 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Kortix Connectors?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/kortix-ai/CompanyOS/tree/dev/packages/starter/templates/managed/skills/kortix-connectors。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Kortix Connectors?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Kortix Connectors 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Kortix Connectors 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Kortix Connectors AI 技能免费吗?

kortix-ai 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇