LaunchKit · 2026
Back to Skills

scalekit-agent-auth

Secure OAuth token management via Scalekit.

4
1.1k downloads
by @avinash-kamath

Setup & Installation

openclaw skills install @avinash-kamath/scalekit-agent-auth

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install scalekit-agent-auth

Version History

v2.2.0Mar 16, 2026 - Version note by skill developer:

feat: mandatory schema fetch before tool execution; fix JSON output for SDK response objects; add LinkedIn→HarvestAPI provider mapping

What This Skill Does

Centralized OAuth token management for AI agents. Tokens are stored and refreshed by Scalekit, never locally. A single function call returns a fresh, valid bearer token for any configured service.

Instead of implementing per-service token refresh logic and secure storage, agents get a fresh token with one function call, with Scalekit handling the full OAuth lifecycle in the background.

When to use it

  • Fetching unread Gmail messages from an agent script without managing token expiry
  • Posting to Slack via an AI agent without storing credentials in config files
  • Reading GitHub repos from automated scripts using centrally managed OAuth tokens
  • Sharing one OAuth connection across multiple agent skills in the same project
  • Re-authorizing expired service connections via a prompted link during agent runs

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: Fetch my unread Gmail messages

AGENT
  1. 1Agent calls get_token("gmail") from scalekit_helper
  2. 2Scalekit checks if the Gmail connection is configured and active
  3. 3If not yet authorized, generates a one-minute auth link and prompts the user to click it
  4. 4User authorizes via browser, Scalekit marks the connection as ACTIVE
  5. 5Agent receives a fresh access token and calls the Gmail API with it
OUTPUT

List of unread message IDs returned from the Gmail API

Requirements

Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.

Scalekit account — sign up at scalekit.comScalekit API credentials: Client ID, Client Secret, and Environment URL from the Scalekit DashboardOAuth app credentials from each provider you want to connect (e.g., Google Cloud Console Client ID and Secret for Gmail)