/agentkit:integrate-agentkitfrom agentkit
Integrates AgentKit so an agent can create a connected account, authorize it, then call one tool through Scalekit. Use when the user wants AgentKit in app code, a GitHub/Gmail/Slack/Notion connected account, or an authorization link. It does not list connectors (that's `discover-connectors`) or wire an always-on host (that's `integrate-agentkit-host`).
Ships in agentkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Take this repo from a connection to a connected account, an authorization link, and one tool call with execute_tool. Then stop.
This is the docs quickstart path: https://docs.scalekit.com/agentkit/quickstart/
connection_name in Python, connectionName in Node). Never invent a slug. Never use a connector field for that value.execute_tool (executeTool in Node). Scalekit adds the user's token to the outgoing request. Scalekit does not return raw user tokens to your app.list_tools scoped to the Connection Name, before you call it.ACTIVE.SCALEKIT_* values from the user. MUST NOT copy them from another project, home directory, or skill folder.SCALEKIT_ENVIRONMENT_URL, SCALEKIT_CLIENT_ID, and SCALEKIT_CLIENT_SECRET. Some samples use SCALEKIT_ENV_URL; use SCALEKIT_ENVIRONMENT_URL here.github-connect. Every other connector, Gmail included, needs its own connection in AgentKit → Connections. setup-agentkit creates it.Use the Connection Name already recorded by setup-agentkit.
If none is recorded:
github-connect.setup-agentkit and stop.Done when: a Connection Name that exists in the dashboard is written down.
If the repo is Node, follow references/node.md from here.
If env vars are missing, collect them from app.scalekit.com → Developers → Settings → API Credentials. Ask the user to put them in this project's env file. Do not invent values. Do not copy values from another directory.
pip install scalekit-sdk-python python-dotenv
import os
from dotenv import load_dotenv
from scalekit import ScalekitClient
load_dotenv()
scalekit_client = ScalekitClient(
env_url=os.environ["SCALEKIT_ENVIRONMENT_URL"],
client_id=os.environ["SCALEKIT_CLIENT_ID"],
client_secret=os.environ["SCALEKIT_CLIENT_SECRET"],
)
actions = scalekit_client.actions
Done when: the client initializes from those three env vars, and source files do not hardcode the secret.
Replace "user_123" with the project's stable user id. Replace "github-connect" with the recorded Connection Name.
connection_name = "github-connect"
user_id = "user_123"
account = actions.get_or_create_connected_account(
connection_name=connection_name,
identifier=user_id,
).connected_account
Done when: a connected account exists for that identifier and Connection Name.
If account.status is ACTIVE, skip this step.
import sys
if account.status != "ACTIVE":
link = actions.get_authorization_link(
connection_name=connection_name,
identifier=user_id,
).link
print(f"Open this link and approve access:\n{link}")
if not sys.stdin.isatty():
raise SystemExit("Finish OAuth in a browser, then run this script again.")
input("Press Enter when you're done...")
account = actions.get_connected_account(
connection_name=connection_name,
identifier=user_id,
).connected_account
if account.status != "ACTIVE":
raise SystemExit(f"The account is {account.status}, not ACTIVE. Run the script again.")
In a web app, redirect the browser to link, then check the status again when the user returns.
Done when: status is ACTIVE after the re-check, or the link is printed and a non-interactive run has stopped.
Default: github_user_get_authenticated, a read-only GitHub tool with no input.
result = actions.execute_tool(
tool_name="github_user_get_authenticated",
tool_input={},
connected_account_id=account.id,
)
print(result.data)
For another connector, pick a read-only tool from its page in https://docs.scalekit.com/agentkit/connectors.md, or list the tools on that connection:
tools = actions.list_tools(
connection_name=connection_name,
identifier=user_id,
page_size=100,
)
print(tools.tool_names)
Change only tool_name and tool_input in Step 5. Keep Steps 3–4.
Done when: one execute_tool call returns data for the connected account.
setup-agentkit if the connection or env is missingdiscover-connectors for the live tool catalog and input schemasintegrate-agentkit-host for OpenClaw or Hermesexpose-agentkit-mcp to expose tools over MCPWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub scalekit-inc/authstack --plugin agentkitOther plugins' skills for the same job
6 skills in this plugin
/check-agentkit-prodChecks AgentKit go-live so an agent can sign off only when every item is PASS or WAIVE with a reason. Use when the user wants AgentKit production, or to go live AgentKit. It does not write a connected account or token (that's `integrate-agentkit`) or check SaaSKit go-live (that's `check-saaskit-prod`).
/discover-connectorsDiscovers AgentKit connectors from the live catalog and MCP so an agent can name tools and schemas. Use when the user asks what connectors exist, wants connector tools, or needs input/output schemas. It does not create a connected account or token (that's `integrate-agentkit`) or expose tools over MCP (that's `expose-agentkit-mcp`).
/