← 返回
未分类 中文

Auth0 Token Vault

Access third-party services (Gmail, Slack, Google Calendar, GitHub) and custom Auth0 connections on behalf of authenticated users via Auth0 Token Vault. Use...
通过 Auth0 Token Vault,代表已认证用户访问 Gmail、Slack、Google Calendar、GitHub 等第三方服务以及自定义 Auth0 连接。使用...
deepu105 deepu105 来源
未分类 clawhub v0.6.1 2 版本 100000 Key: 无需
★ 1
Stars
📥 495
下载
💾 1
安装
2
版本
#latest

概述

Auth0 Token Vault CLI

Use the auth0-tv command-line tool to access third-party services on behalf of

authenticated users via Auth0 Token Vault.

Current status

  • Auth status: !auth0-tv --json status 2>/dev/null || echo '{"error":{"code":"not_configured","message":"auth0-tv not configured or not logged in"}}'

First-time setup

If auth0-tv --json status returns a not_configured error, guide the user through setup:

  1. Run the interactive setup wizard (recommended — handles all steps automatically):

```bash

auth0-tv init

```

The init wizard will check prerequisites, configure Token Vault, set up callback URLs, retrieve credentials, and authenticate — all in one guided flow.

All setup steps require human interaction. Do not attempt to run them autonomously.

Manual setup (alternative)

If the wizard is not suitable, guide the user through manual setup:

  1. Install Auth0 CLI (if not already installed):

```bash

brew tap auth0/auth0-cli && brew install auth0

```

  1. Run the Token Vault setup wizard (interactive — requires human):

```bash

npx configure-auth0-token-vault

```

The wizard handles Auth0 CLI login automatically. When prompted:

  • Select Create a new application (or use an existing one)
  • Select Regular Web Application for the app type
  • Select Refresh Token Exchange for the Token Vault configuration

Note the Client ID from the output.

  1. Configure callback URLs using the Auth0 CLI (replace with the Client ID):

```bash

auth0 apps update \

--callbacks "http://127.0.0.1:18484/callback,http://127.0.0.1:18485/callback,http://127.0.0.1:18486/callback,http://127.0.0.1:18487/callback,http://127.0.0.1:18488/callback,http://127.0.0.1:18489/callback" \

--logout-urls "http://127.0.0.1:18484,http://127.0.0.1:18485,http://127.0.0.1:18486,http://127.0.0.1:18487,http://127.0.0.1:18488,http://127.0.0.1:18489"

```

  1. Get the client secret (needed during auth0-tv login):

```bash

auth0 apps show --reveal-secrets

```

  1. Log in with auth0-tv:

```bash

auth0-tv login

```

All setup steps require human interaction. Do not attempt to run them autonomously.

When to use this skill

  • The user asks to read, search, send, reply, forward, archive, or delete emails
  • The user wants to manage email drafts or labels
  • The user wants to view, create, update, or delete Google calendar events
  • The user wants to search Slack messages, post to channels, or manage their Slack status
  • The user wants to list repos, view issues/PRs, create issues, search code, or manage GitHub notifications
  • The user wants to make an authenticated API call to a third-party service
  • The user wants to connect or disconnect a third-party service (Gmail, Google Calendar, Slack, GitHub)
  • The user wants to connect a custom Auth0 connection (any social/enterprise identity provider configured on their tenant)
  • The user asks about their authentication or connection status

Key patterns

Always use --json mode

All commands must use --json for structured output:

auth0-tv --json <command>

Alternatively, set AUTH0_TV_OUTPUT=json in the environment to avoid passing --json on every call.

Destructive actions require --confirm

Commands that modify data (send, delete, archive, forward, reply, draft send, draft delete) require --confirm:

auth0-tv --json --confirm gmail send --to user@example.com --subject "Subject" --body "Body"

Exit codes and recovery

CodeMeaningRecovery action
------------------------------------------------------------------------
0SuccessParse JSON output
1General errorReport error to user
2Invalid inputCheck command syntax and required flags
3Auth requiredTell the user to run auth0-tv login
4Connection requiredTell the user to run auth0-tv connect
5Service errorRetry or report upstream API failure
6Network errorCheck connectivity, retry

Important: Exit codes 3 and 4 require human intervention — login and connect open a browser for OAuth. Do not attempt to run these commands autonomously; instead, tell the user what to run.

Auth and connect/logout callback servers default to trying ports 18484-18489. If that range is blocked, pass the global --port flag or set AUTH0_TV_PORT to force a specific port (that port must be allowed in Auth0 app callback settings).

Body input for email composition

For send, reply, and draft create, the message body can be provided via:

  • --body "inline text" — short messages
  • --body-file ./message.txt — longer messages from a file
  • stdin: echo "body" | auth0-tv --json --confirm gmail send --to ... --subject ...

Prefer --body-file or stdin for messages containing special characters.

Available commands

Authentication & setup

  • auth0-tv login [--reconfigure] — authenticate via browser (human-in-the-loop)
  • auth0-tv logout — clear stored credentials
  • auth0-tv status — show current user and connected services
  • auth0-tv connect — connect a known service via browser (human-in-the-loop)
  • auth0-tv connect --scopes --allowed-domains — connect any Auth0 connection by name
  • auth0-tv disconnect — disconnect a service or custom connection (local token only by default)
  • auth0-tv disconnect --remote — disconnect a service and remove the server-side connection
  • auth0-tv connections — list connected services (remote accounts with local token status)

Gmail

  • auth0-tv gmail search — search messages (supports Gmail search syntax)
  • auth0-tv gmail read — read a message
  • auth0-tv gmail send — send a new message (destructive)
  • auth0-tv gmail reply — reply to a message (destructive)
  • auth0-tv gmail forward — forward a message (destructive)
  • auth0-tv gmail archive — archive a message (destructive)
  • auth0-tv gmail delete — move to trash (destructive)
  • auth0-tv gmail labels — list labels
  • auth0-tv gmail label — add/remove labels
  • auth0-tv gmail draft create — create a draft
  • auth0-tv gmail draft list — list drafts
  • auth0-tv gmail draft send — send a draft (destructive)
  • auth0-tv gmail draft delete — delete a draft (destructive)

Google Calendar

  • auth0-tv calendar list — list calendars
  • auth0-tv calendar events [calendarId] — list events (default: primary calendar)
  • auth0-tv calendar get — get event details
  • auth0-tv calendar create — create an event (destructive)
  • auth0-tv calendar update — update an event (destructive)
  • auth0-tv calendar delete — delete an event (destructive)
  • auth0-tv calendar quick-add — create event from natural language (destructive)

Slack

  • auth0-tv slack channels — list channels
  • auth0-tv slack messages — list messages in a channel
  • auth0-tv slack search — search messages (Slack search syntax)
  • auth0-tv slack post — post a message (destructive)
  • auth0-tv slack reply — reply to a thread (destructive)
  • auth0-tv slack react — add/remove emoji reaction
  • auth0-tv slack users — list users
  • auth0-tv slack user — get user info
  • auth0-tv slack status — set your status

GitHub

  • auth0-tv github repos — list your repositories
  • auth0-tv github repo — get repository details
  • auth0-tv github issues — list issues
  • auth0-tv github issue get — get issue details
  • auth0-tv github issue create — create an issue (destructive)
  • auth0-tv github issue comment — comment on an issue (destructive)
  • auth0-tv github issue close — close an issue (destructive)
  • auth0-tv github prs — list pull requests
  • auth0-tv github pr get — get PR details
  • auth0-tv github pr comment — comment on a PR (destructive)
  • auth0-tv github notifications — list notifications
  • auth0-tv github notification read — mark notification as read (destructive)
  • auth0-tv github search repos — search repositories
  • auth0-tv github search code — search code
  • auth0-tv github search issues — search issues and PRs

API passthrough (fetch)

  • auth0-tv fetch — make an authenticated HTTP request to an allowed domain
  • auth0-tv fetch — fetch using a custom Auth0 connection token
  • auth0-tv fetch -X POST -d '{"key":"value"}' — POST with inline body
  • auth0-tv fetch -X POST --data-file ./body.json — POST with body from file
  • auth0-tv fetch -H "Accept: text/plain" — add custom headers

Known services have default allowed domains built in. Custom connections require --allowed-domains to be set during connect:

ServiceDefault allowed domains
------------------------------------
gmail*.googleapis.com
calendar*.googleapis.com
githubapi.github.com
slackslack.com, *.slack.com

Additional domains can be added via --allowed-domains on connect. Custom connections have no default domains — you must specify --allowed-domains when connecting. Only HTTPS URLs are allowed.

See references/commands.md for full command reference with flags and JSON output examples.

版本历史

共 2 个版本

  • v0.6.1 当前
    2026-05-07 03:57 安全 安全
  • v0.4.0
    2026-05-03 08:17 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,109 📥 830,796
ai-agent

Find Skills

guipi888
场景驱动+关键词双模式技能发现工具。当用户用自然语言描述场景/需求(如"我想做一个海报""帮我分析股票"),或明确说"安装技能/find skills/找个skill"时,自动从官方内置、本地已安装、SkillHub、虾评、GitHub、C
★ 1,473 📥 535,640
dev-programming

Auth0 Quickstart Test

deepu105
用于在任意应用中添‑加身份验证或登录‑检测技术栈(React、Next.js、Vue、Nuxt、Angular、Express、Fastify、React Native),配置相应的认证功能。
★ 0 📥 392