# Send Scalekit-Agent-Auth to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "scalekit-agent-auth",
    "name": "Scalekit-Agent-Auth",
    "source": "tencent",
    "type": "skill",
    "category": "效率提升",
    "sourceUrl": "https://clawhub.ai/Avinash-Kamath/scalekit-agent-auth",
    "canonicalUrl": "https://clawhub.ai/Avinash-Kamath/scalekit-agent-auth",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/scalekit-agent-auth",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=scalekit-agent-auth",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "agent_wrapper.py",
      "pyproject.toml",
      "requirements.txt",
      "tool_exec.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "scalekit-agent-auth",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-01T04:20:47.812Z",
      "expiresAt": "2026-05-08T04:20:47.812Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=scalekit-agent-auth",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=scalekit-agent-auth",
        "contentDisposition": "attachment; filename=\"scalekit-agent-auth-2.4.2.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "scalekit-agent-auth"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/scalekit-agent-auth"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/scalekit-agent-auth",
    "downloadUrl": "https://openagent3.xyz/downloads/scalekit-agent-auth",
    "agentUrl": "https://openagent3.xyz/skills/scalekit-agent-auth/agent",
    "manifestUrl": "https://openagent3.xyz/skills/scalekit-agent-auth/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/scalekit-agent-auth/agent.md"
  }
}
```
## Documentation

### OpenClaw Tool Executor

General-purpose tool executor for OpenClaw agents. Uses Scalekit Connect to discover and run tools for any connected service — OAuth (Notion, Slack, Gmail, GitHub, etc.) or non-OAuth (API Key, Bearer, Basic auth).

### Environment Variables

Required in .env:

TOOL_CLIENT_ID=<scalekit_client_id>
TOOL_CLIENT_SECRET=<scalekit_client_secret>
TOOL_ENV_URL=<scalekit_environment_url>
TOOL_IDENTIFIER=<default_identifier>   # optional but recommended

TOOL_IDENTIFIER is used as the default --identifier for all operations. If not set, the script will prompt the user at runtime and display a warning advising them to set it in .env.

### Execution Flow

When the user asks to perform an action on a connected service, follow these steps in order:

### Step 1 — Discover the Connection

Dynamically resolve the connection_name by listing all configured connections for the provider. The API paginates automatically through all pages:

uv run tool_exec.py --list-connections --provider <PROVIDER>

Use the key_id from the first result as <CONNECTION_NAME> for all subsequent steps.
If no connection found → inform the user that no <PROVIDER> connection is configured in Scalekit and stop.
If multiple connections found → the first one is selected automatically (a warning is shown).

### Step 2 — Check & Authorize

Run --generate-link for the connection. The tool automatically detects the connection type (OAuth vs non-OAuth) and applies the correct auth flow:

uv run tool_exec.py --generate-link \\
  --connection-name <CONNECTION_NAME>

OAuth connections:

If already ACTIVE → proceed to Step 3.
If not active → a magic link is generated. Present it to the user, wait for them to complete the flow, then proceed to Step 3.

Non-OAuth connections (BEARER, BASIC, API Key, etc.):

If account not found → stop. Tell the user: "Please create and configure the <CONNECTION_NAME> connection in the Scalekit Dashboard."
If account exists but not active → stop. Tell the user: "Please activate the <CONNECTION_NAME> connection in the Scalekit Dashboard."
If ACTIVE → proceed to Step 3.

Never use --get-authorization in the execution flow — that is only for inspecting raw OAuth tokens and does not work for non-OAuth connections.

### Step 3 — Discover Available Tools

Fetch the list of tools available for the provider:

uv run tool_exec.py --get-tool --provider <PROVIDER>

Look for a tool that matches the user's intent (e.g. notion_page_get for reading a page).
If a matching tool exists → go to Step 3b.
If no matching tool exists → go to Step 5 (proxy fallback).

### Step 3b — Fetch Tool Schema (mandatory before executing)

Always fetch the schema of the matched tool before constructing the input. This tells you the exact parameter names, types, required vs optional fields, and valid enum values:

uv run tool_exec.py --get-tool --tool-name <TOOL_NAME>

Read the input_schema.properties from the response — use only the parameter names defined there.
Note which fields are in required — these must always be included in --tool-input.
Use description and display_properties to understand what each field expects.
Never guess parameter names — always derive them from the schema.

### Step 4 — Execute the Tool

Construct the tool input using only parameters from the schema fetched in Step 3b, then run:

uv run tool_exec.py --execute-tool \\
  --tool-name <TOOL_NAME> \\
  --connection-name <CONNECTION_NAME> \\
  --tool-input '<JSON_INPUT>'

Return the result to the user.

### Step 5 — Proxy Fallback (only if no tool exists)

If no Scalekit tool covers the required action, attempt a proxied HTTP request directly to the provider's API:

uv run tool_exec.py --proxy-request \\
  --connection-name <CONNECTION_NAME> \\
  --path <API_PATH> \\
  --method <GET|POST|PUT|DELETE> \\
  --query-params '<JSON>' \\   # optional
  --body '<JSON>'             # optional

Note: Proxy may be disabled on some environments. If it returns TOOL_PROXY_DISABLED, inform the user that this action isn't supported by the current Scalekit tool catalog and suggest they request a new tool from Scalekit.

### Example: Search LinkedIn (via HarvestAPI)

User: "Find software engineers in San Francisco on LinkedIn"

--list-connections --provider HARVESTAPI → key_id: harvestapi-xxxx, type: API_KEY
--generate-link --connection-name harvestapi-xxxx → detects API_KEY, checks account → ACTIVE
--get-tool --provider HARVESTAPI → finds harvestapi_search_people
3b. --get-tool --tool-name harvestapi_search_people → schema shows valid params: first_names, last_names, search, locations, current_job_titles, etc.
--execute-tool --tool-name harvestapi_search_people --connection-name harvestapi-xxxx --tool-input '{"first_names": "John", "locations": "San Francisco", "current_job_titles": "Software Engineer"}'
→ returns matching LinkedIn profiles

Any LinkedIn-related request (profiles, jobs, companies, posts, people search, ads, groups) → use provider HARVESTAPI.

### Example: Search the web with Exa (API Key connection)

User: "Search for latest AI news using Exa"

--list-connections --provider EXA → key_id: exa, type: API_KEY
--generate-link --connection-name exa → detects API_KEY, checks account → ACTIVE
--get-tool --provider EXA → finds exa_search
3b. --get-tool --tool-name exa_search → schema shows query (required), num_results, type, etc.
--execute-tool --tool-name exa_search --connection-name exa --tool-input '{"query": "latest AI news"}'
→ returns search results

### Example: Read a Notion Page (OAuth connection)

User: "Read my Notion page https://notion.so/..."

--list-connections --provider NOTION → key_id: notion-ijIQedmJ, type: OAUTH
--generate-link --connection-name notion-ijIQedmJ → detects OAuth, already ACTIVE
--get-tool --provider NOTION → finds notion_page_get
3b. --get-tool --tool-name notion_page_get → schema shows page_id (required)
--execute-tool --tool-name notion_page_get --connection-name notion-ijIQedmJ --tool-input '{"page_id": "..."}'
→ returns page metadata

### Example: Action Not Yet in Scalekit

User: "Fetch the blocks of a Notion page"

--list-connections --provider NOTION → key_id: notion-ijIQedmJ
--generate-link --connection-name notion-ijIQedmJ → ACTIVE
--get-tool --provider NOTION → no notion_blocks_fetch tool found
--proxy-request --path "/blocks/<page_id>/children" → fallback attempt
If proxy disabled → inform user the action isn't available yet

### Supported Providers

Any provider configured in Scalekit (Notion, Slack, Gmail, Google Sheets, GitHub, Salesforce, HubSpot, Linear, and 50+ more). Use the provider name in uppercase for --provider (e.g. NOTION, SLACK, GOOGLE).
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: Avinash-Kamath
- Version: 2.2.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-01T04:20:47.812Z
- Expires at: 2026-05-08T04:20:47.812Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/scalekit-agent-auth)
- [Send to Agent page](https://openagent3.xyz/skills/scalekit-agent-auth/agent)
- [JSON manifest](https://openagent3.xyz/skills/scalekit-agent-auth/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/scalekit-agent-auth/agent.md)
- [Download page](https://openagent3.xyz/downloads/scalekit-agent-auth)