Skip to content
Back to skills

X Setup

ASecurity

X/Twitter OAuth 1.0a setup for minipostiz-cli — create developer app, get all 4 keys, store credentials

  • 58 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added May 29, 2026
securitygobashapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 8, 2026

npx -y skills add javimosch/supercli --skill x-setup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of X Setup?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for X Setup
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/javimosch-x-setup/badge)](https://www.skillsdirectory.com/skills/javimosch-x-setup)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: minipostiz-x-setup
description: X/Twitter OAuth 1.0a setup for minipostiz-cli — create developer app, get all 4 keys, store credentials
type: setup
---

# minipostiz-cli — X (Twitter) Setup

X uses OAuth 1.0a for posting. You need 4 keys: API Key, API Secret, Access Token, Access Token Secret.

## Commands
- `minipostiz-cli <resource> <action>` — Execute minipostiz-cli commands
- `minipostiz auth set-x` — Store X/Twitter OAuth 1.0a credentials (apiKey, apiSecret, accessToken, accessSecret)
- `minipostiz auth set-bluesky` — Store Bluesky credentials (handle + app password)
- `minipostiz auth set-discord` — Store Discord webhook URL
- `minipostiz auth set-telegram` — Store Telegram bot token and chat ID
- `minipostiz auth set-mastodon` — Store Mastodon instance URL and access token
- `minipostiz auth set-devto` — Store Dev.to API key
- `minipostiz auth set-linkedin` — Store LinkedIn access token and person URN
- `minipostiz auth set-reddit` — Store Reddit OAuth credentials and target subreddit
- `minipostiz auth set-facebook` — Store Facebook page access token and page ID
- `minipostiz auth list` — List all configured social media platform credentials
- `minipostiz auth remove` — Remove stored credentials for a platform
- `minipostiz auth verify` — Verify stored credentials for a platform are valid
- `minipostiz post publish` — Publish a message immediately to one or more social media platforms
- `minipostiz post schedule` — Schedule a post for future publication on a social media platform
- `minipostiz schedule list` — List scheduled posts, optionally filtered by platform
- `minipostiz schedule cancel` — Cancel a scheduled post by ID
- `minipostiz history list` — Show post history with optional platform and status filters
- `minipostiz platforms list` — List all supported platforms and their auth requirements
- `minipostiz daemon start` — Start the background scheduler daemon
- `minipostiz daemon stop` — Stop the background scheduler daemon
- `minipostiz daemon status` — Check if the scheduler daemon is running
- `minipostiz self status` — Show minipostiz-cli system status: version, db path, platforms, daemon

## What you need

| Credential | Flag |
|------------|------|
| API Key (Consumer Key) | `--apiKey` |
| API Secret (Consumer Secret) | `--apiSecret` |
| Access Token | `--accessToken` |
| Access Token Secret | `--accessSecret` |

---

## Step 1 — Create a Developer App

1. Go to https://developer.twitter.com/en/portal/dashboard
2. Sign in with your X account → click **+ Create Project**
3. Fill in project name, use case, description → create
4. Create an **App** inside the project
5. In App Settings → **User authentication settings** → click Edit:
   - App permissions: **Read and Write**
   - Type of App: **Web App, Automated App or Bot**
   - Callback URI: `http://localhost` (required, not actually used)
   - Website URL: any valid URL
6. Save

> **Read and Write** permission is required — Read-only tokens cannot post.

---

## Step 2 — Get API Keys

In your app → **Keys and Tokens** tab:

1. **API Key and Secret** section → click **Regenerate** → copy both values immediately (secret shown once)
2. **Access Token and Secret** section → click **Generate** → copy both values immediately

> If you already generated them and lost the secret, regenerate — old tokens are invalidated.

---

## Step 3 — Store in minipostiz-cli

```bash
minipostiz auth --platform x \
  --apiKey "YOUR_API_KEY" \
  --apiSecret "YOUR_API_SECRET" \
  --accessToken "YOUR_ACCESS_TOKEN" \
  --accessSecret "YOUR_ACCESS_SECRET"

# Or via supercli
sc minipostiz auth set-x \
  --apiKey "YOUR_API_KEY" \
  --apiSecret "YOUR_API_SECRET" \
  --accessToken "YOUR_ACCESS_TOKEN" \
  --accessSecret "YOUR_ACCESS_SECRET"
```

---

## Step 4 — Test

```bash
minipostiz publish --platform x --message "Hello from minipostiz-cli"
minipostiz history --platform x --limit 5
```

---

## Troubleshooting

| Error | Cause | Fix |
|-------|-------|-----|
| `401 Unauthorized` | Wrong keys or Read-only permission | Check all 4 keys; ensure app has Read+Write |
| `403 Forbidden` | App not approved for write access | Set app permissions to Read and Write, regenerate tokens |
| `187 Status is a duplicate` | Identical tweet already posted | Change the message text |
| `453 App not allowed` | Free tier restriction | Basic tier ($100/mo) required for v2 posting |

## Free tier limits (as of 2025)

- Free tier: **500 tweets/month**, no media upload
- Basic tier: 3,000 tweets/month, media upload supported
- minipostiz uses Twitter API v2 for posting and v1.1 for media upload

## Token lifetime

OAuth 1.0a tokens **do not expire** unless you regenerate them or revoke app access.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.