跳到正文
TakoAPI
返回技能列表

scalekit-agent-auth

由 avinash-kamath 提供

Git & GitHub
1.1k下载量由 clawskills.sh 提供
4星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Secure OAuth token management via Scalekit.

描述

该技能的功能

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.

何时使用

  • 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

示例工作流

输入

User asks: Fetch my unread Gmail messages

智能体
  1. 1

    Agent calls get_token("gmail") from scalekit_helper

  2. 2

    Scalekit checks if the Gmail connection is configured and active

  3. 3

    If not yet authorized, generates a one-minute auth link and prompts the user to click it

  4. 4

    User authorizes via browser, Scalekit marks the connection as ACTIVE

  5. 5

    Agent receives a fresh access token and calls the Gmail API with it

输出

List of unread message IDs returned from the Gmail API

前置要求

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

安装

clawhub install avinash-kamath/scalekit-agent-auth

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接