Install
openclaw skills install vincent-twitterTwitter/X.com data access for agents. Use this skill when users want to search tweets, look up user profiles, or retrieve recent tweets. Pay-per-call via Vin...
openclaw skills install vincent-twitterUse this skill to search tweets, look up user profiles, and retrieve recent tweets from X.com (Twitter). All requests are proxied through the Vincent backend, which handles authentication with the X API, enforces rate limits, tracks per-call costs, and deducts from your credit balance automatically.
No API keys to manage. The agent authenticates with a Vincent API key scoped to a DATA_SOURCES secret. Vincent handles the upstream Twitter API credentials server-side -- the agent never sees or manages Twitter API keys.
All commands use the @vincentai/cli package. API keys are stored and resolved automatically — you never handle raw keys or file paths.
This skill is designed for autonomous agent operation with pay-per-call pricing and human oversight.
No environment variables are required because this skill uses agent-first onboarding: the agent creates a DATA_SOURCES secret at runtime by calling the Vincent API, which returns a scoped API key. The CLI stores the returned API key automatically during creation. The config paths where the key is persisted (${OPENCLAW_STATE_DIR:-$HOME/.openclaw}/credentials/datasources/ or ./datasources/) are declared in this skill's metadata.
The agent's API key is not a Twitter API key. It is a scoped Bearer token for the Vincent proxy. The Vincent server authenticates with Twitter on the agent's behalf. The agent cannot access the upstream API directly or bypass the proxy's credit and rate-limit enforcement.
Model invocation is intentionally enabled. The purpose of this skill is to give AI agents autonomous access to Twitter data. The agent is expected to search tweets and look up profiles on its own. The human controls spending through credit balance and payment method management at https://heyvincent.ai.
All API calls go exclusively to heyvincent.ai over HTTPS/TLS. The Vincent server then calls the Twitter API. The agent does not contact Twitter directly.
Key lifecycle:
secret create with --type DATA_SOURCES — the CLI stores the API key automatically and returns a keyId and claimUrl.https://heyvincent.ai.| Endpoint | Cost per call |
|---|---|
| Search tweets | $0.01 |
| Get tweet by ID | $0.005 |
| Get user profile | $0.005 |
| Get user's tweets | $0.01 |
Credit is deducted automatically per call. The response includes _vincent.creditRemainingUsd so the agent can track remaining balance.
Before creating a new secret, check if one already exists:
npx @vincentai/cli@latest secret list --type DATA_SOURCES
If a key is returned, use its id as the --key-id for all subsequent commands. If no keys exist, create a new secret.
npx @vincentai/cli@latest secret create --type DATA_SOURCES --memo "My agent data sources"
Returns keyId (use for all future commands) and claimUrl (share with the user).
After creating, tell the user:
"Here is your data sources claim URL:
<claimUrl>. Use this to claim ownership and add credit for Twitter and other data sources at https://heyvincent.ai."
Important: The secret must be claimed and have credit (or a payment method on file) before API calls will succeed.
npx @vincentai/cli@latest twitter search --key-id <KEY_ID> --q bitcoin --max-results 10
Parameters:
--q (required): Search query (1-512 characters)--max-results (optional): Number of results, 10-100 (default: 10)--start-time (optional): ISO 8601 datetime, earliest tweets to return--end-time (optional): ISO 8601 datetime, latest tweets to returnReturns tweet text, creation time, author ID, and public metrics (likes, retweets, replies).
npx @vincentai/cli@latest twitter tweet --key-id <KEY_ID> --tweet-id <TWEET_ID>
Look up a Twitter user by username.
npx @vincentai/cli@latest twitter user --key-id <KEY_ID> --username elonmusk
Returns the user's description, follower/following counts, profile image, and verified status.
npx @vincentai/cli@latest twitter user-tweets --key-id <KEY_ID> --user-id <USER_ID> --max-results 10
Note: This command requires the user's numeric ID (from the user profile response), not the username.
Every successful response includes a _vincent object with:
{
"_vincent": {
"costUsd": 0.01,
"creditRemainingUsd": 4.99
}
}
Use creditRemainingUsd to warn the user when credit is running low.
Tweet search results:
{
"data": [
{
"id": "123456789",
"text": "Tweet content here",
"created_at": "2026-02-26T12:00:00.000Z",
"author_id": "987654321",
"public_metrics": {
"like_count": 42,
"retweet_count": 10,
"reply_count": 5
}
}
],
"_vincent": {
"costUsd": 0.01,
"creditRemainingUsd": 4.99
}
}
User profile responses include description, public_metrics (followers/following counts), profile_image_url, and verified.
| Error | Cause | Resolution |
|---|---|---|
401 Unauthorized | Invalid or missing API key | Check that the key-id is correct; re-link if needed |
402 Insufficient Credit | Credit balance is zero and no payment method on file | User must add credit at heyvincent.ai |
429 Rate Limited | Exceeded 60 requests/minute | Wait and retry with backoff |
Key not found | API key was revoked or never created | Re-link with a new token from the secret owner |
User not found | Username doesn't exist on Twitter | Verify the username spelling |
429 response. Wait and retry.If the agent loses its API key, the secret owner can generate a re-link token from the frontend. The agent then exchanges this token for a new API key.
npx @vincentai/cli@latest secret relink --token <TOKEN_FROM_USER>
The CLI exchanges the token for a new API key, stores it automatically, and returns the new keyId. Re-link tokens are one-time use and expire after 10 minutes.
When your credit balance runs low, you can purchase more credits autonomously using USDC on Base via the x402 payment protocol — no human intervention required.
Available tiers: $1, $5, $10, $25, $50, $100
npx @vincentai/cli@latest credits balance --key-id <KEY_ID>
npx @vincentai/cli@latest credits add --key-id <KEY_ID> --amount 10
How it works:
Requirements:
npx @vincentai/cli@latest credits checkout --key-id <KEY_ID>
Returns a Stripe Checkout URL. Share this with the user to complete payment with a card.
| Tool | Description |
|---|---|
vincent_credit_balance | Check current credit balance and top-up options |
vincent_add_credits | Get x402 payment instructions for purchasing credits |
For long-running agents, check your balance before expensive operations and top up when low:
BALANCE=$(npx @vincentai/cli@latest credits balance --key-id <KEY_ID> --json | jq -r '.balance')
if (( $(echo "$BALANCE < 2.00" | bc -l) )); then
npx @vincentai/cli@latest credits add --key-id <KEY_ID> --amount 10
fi
DATA_SOURCES API key works for all data sources (Twitter, Brave Search, etc.). You do not need a separate key per data source.https://heyvincent.ai.