Auth0 Token Vault
by @deepu105
Access third-party services (Gmail, Slack, Google Calendar, GitHub) and custom Auth0 connections on behalf of authenticated users via Auth0 Token Vault. Use...
clawhub install auth0-token-vaultπ About This Skill
name: auth0-token-vault description: > Access third-party services (Gmail, Slack, Google Calendar, GitHub) and custom Auth0 connections on behalf of authenticated users via Auth0 Token Vault. Use when the user wants to search, read, send, or manage emails, manage calendar events, interact with Slack, manage GitHub repos/issues/PRs/notifications, make authenticated API calls to third-party services or custom identity providers, connect or disconnect external services, or check their authentication and connection status. Wraps the auth0-tv CLI. compatibility: Requires Node.js 20+ and auth0-tv installed globally (npm i -g auth0-token-vault-cli) license: MIT allowed-tools: Bash(auth0-tv *) metadata: author: deepu105 version: '0.3' openclaw: emoji: "\U0001F510" requires: bins: - auth0-tv os: - darwin - linux install: - id: npm kind: node package: 'auth0-token-vault-cli' bins: [auth0-tv] label: 'Install auth0-tv (npm)'
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
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):
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):
brew tap auth0/auth0-cli && brew install auth0
2. Run the Token Vault setup wizard (interactive β requires human):
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.
3. Configure callback URLs using the Auth0 CLI (replace with the Client ID):
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"
4. Get the client secret (needed during auth0-tv login):
auth0 apps show --reveal-secrets
5. Log in with auth0-tv:
auth0-tv login
All setup steps require human interaction. Do not attempt to run them autonomously.
When to use this skill
Key patterns
Always use --json mode
All commands must use --json for structured output:
auth0-tv --json
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
| Code | Meaning | Recovery action |
| ---- | ------------------- | ------------------------------------------------- |
| 0 | Success | Parse JSON output |
| 1 | General error | Report error to user |
| 2 | Invalid input | Check command syntax and required flags |
| 3 | Auth required | Tell the user to run auth0-tv login |
| 4 | Connection required | Tell the user to run auth0-tv connect |
| 5 | Service error | Retry or report upstream API failure |
| 6 | Network error | Check 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 fileecho "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 credentialsauth0-tv status β show current user and connected servicesauth0-tv connect β connect a known service via browser (human-in-the-loop)auth0-tv connect --scopes --allowed-domains β connect any Auth0 connection by nameauth0-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 connectionauth0-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 messageauth0-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 labelsauth0-tv gmail label β add/remove labelsauth0-tv gmail draft create β create a draftauth0-tv gmail draft list β list draftsauth0-tv gmail draft send β send a draft (destructive)auth0-tv gmail draft delete β delete a draft (destructive)Google Calendar
auth0-tv calendar list β list calendarsauth0-tv calendar events [calendarId] β list events (default: primary calendar)auth0-tv calendar get β get event detailsauth0-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 channelsauth0-tv slack messages β list messages in a channelauth0-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 reactionauth0-tv slack users β list usersauth0-tv slack user β get user infoauth0-tv slack status β set your statusGitHub
auth0-tv github repos β list your repositoriesauth0-tv github repo β get repository detailsauth0-tv github issues β list issuesauth0-tv github issue get β get issue detailsauth0-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 requestsauth0-tv github pr get β get PR detailsauth0-tv github pr comment β comment on a PR (destructive)auth0-tv github notifications β list notificationsauth0-tv github notification read β mark notification as read (destructive)auth0-tv github search repos β search repositoriesauth0-tv github search code β search codeauth0-tv github search issues β search issues and PRsAPI passthrough (fetch)
auth0-tv fetch β make an authenticated HTTP request to an allowed domainauth0-tv fetch β fetch using a custom Auth0 connection tokenauth0-tv fetch -X POST -d '{"key":"value"}' β POST with inline bodyauth0-tv fetch -X POST --data-file ./body.json β POST with body from fileauth0-tv fetch -H "Accept: text/plain" β add custom headersKnown services have default allowed domains built in. Custom connections require --allowed-domains to be set during connect:
| Service | Default allowed domains |
| ---------- | -------------------------- |
| gmail | *.googleapis.com |
| calendar | *.googleapis.com |
| github | api.github.com |
| slack | slack.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.