Open Social
Documentation

Getting started

Connect an account, create an API key, and publish your first post.

View Markdown

Use the dashboard for account connection and post management. Use an API key to connect the API, CLI, or an agent to your organisation.

Using an AI agent?

Copy these instructions into your AI agent. They include the docs links, client setup steps, and publication checks.

Start with the documentation index, or read all docs as Markdown. Use the Copy Markdown control on any page to copy that page.

Connect an account

  1. Sign in or create an account.
  2. Open Accounts and select Connect an account.
  3. Select a platform and complete its connection steps. For OAuth platforms, sign in with the platform and grant the requested permissions.
  4. Confirm that the account status is Connected.

See the platform guide for availability and account requirements. For Bluesky, use your handle and an app password.

If a platform shows Setup required, contact the service administrator. If an account shows Needs reconnect, connect that account again.

Create your first post

  1. Open Posts and create a post.
  2. Select the connected accounts that must receive the post.
  3. Enter text, attach media, and set the required platform options.
  4. Validate the post and correct each reported error.
  5. Save a draft, publish now, or select a date and time to schedule the post.

A publish request starts the publication process. Check the status of each publication before you report that the post was published. A post can succeed on one platform and fail on another.

Create an API key

Open API keys and create a key. Copy the full key when it is shown. The key is shown only once. The prefix in the key list cannot authenticate requests.

Select the permissions your client needs. An empty scope list gives full access. For the agent workflow below, a restricted key needs billing:read, accounts:read, capabilities:read, posts:read, and posts:write. Add media:read to list media, media:write to upload media, and events:read to read events.

Select How to use on the API keys page for CLI, MCP, and REST connection instructions. Keep the key private.

If a key is exposed or no longer needed, select its Revoke API key row action and confirm. The key stops working for CLI, REST, and MCP requests. You can also run bun run cli -- keys revoke key_example with a full access key or a key that has keys:write. Replace key_example with the key ID from bun run cli -- keys list. Revocation cannot be undone.

Use an agent

Hosted MCP with OAuth

Add https://opensocial.run/api/mcp as a remote MCP server. The client discovers the Open Social authorization server, opens the sign-in page, and asks you to approve the requested permissions. No API key is needed.

For a client that supports a remote MCP JSON configuration, use this template:

JSON
{
  "mcpServers": {
    "open-social": {
      "url": "https://opensocial.run/api/mcp"
    }
  }
}

If your client asks for a server URL instead, enter https://opensocial.run/api/mcp. Restart the client after you add the server. The remote server requests the same publication permissions as a restricted API key: billing:read, accounts:read, capabilities:read, media:read, media:write, posts:read, posts:write, and events:read. It uses the organisation of the account that approves the request. To stop access, remove the server in your MCP client and sign out of Open Social.

Local MCP server

For a local process, install Bun and the repository dependencies with bun install. Add this server to your MCP client configuration:

JSON
{
  "mcpServers": {
    "open-social": {
      "command": "bun",
      "args": ["--cwd", "/absolute/path/to/open-social", "run", "mcp"],
      "env": {
        "OPEN_SOCIAL_BASE_URL": "https://opensocial.run",
        "OPEN_SOCIAL_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}

Replace the repository path and API key. For a local or self-hosted service, also replace the service address. This server uses stdio: the client starts it as a local process. Keep the configuration private and use the client's secret storage if available.

Use these tools in this order:

StepMCP toolPurpose
1social_billing_balanceRead available credits before you publish.
2social_accounts_listGet connected accounts and their IDs.
3social_capabilities_getRead text limits, media limits, and platform requirements.
4social_account_publishing_optionsFor TikTok sandbox posts, read current privacy choices and creator limits.
5social_media_listSelect ready media saved in your workspace.
6social_media_importImport an image or video attached in ChatGPT.
7social_post_validateCheck text, attachments, and options for the target accounts.
8social_post_createSave a draft without scheduling or publishing.
9social_post_publish or social_post_schedulePublish a draft or set its publication time.
10social_post_statusCheck the post and each publication result.
11social_events_listRead recent events, if needed.
12social_posts_listFind saved drafts and scheduled posts.
13social_post_cancelCancel pending publication after confirmation.

Pass account IDs from the account list. Use ready media IDs from the media library or social_media_import. In ChatGPT, attach an image or video and ask to save it to Open Social. The import limit is 100 MiB or the workspace upload limit, whichever is lower. Supported types are JPEG, PNG, WebP, GIF, MP4, QuickTime, and WebM. Do not guess IDs or platform limits.

The local MCP server also supplies social_media_upload_init and social_media_upload_complete for clients that can transfer file bytes. These tools are not part of the hosted MCP connection. For other files, use the dashboard upload and then select the file with social_media_list. For a TikTok sandbox post, ask the creator to choose the privacy level and confirm consent for each video.

social_media_import, social_post_create, social_post_publish, social_post_schedule, and social_post_cancel require an idempotency_key. Use a new key for a new action, and reuse the same key when you retry the same action.

Before scheduling or publishing, confirm the content and target accounts. For schedules, also confirm the date, time, and time zone. Draft creation does not schedule a post. An accepted publication request does not prove that the platform has published the content. Check social_post_status for the result.

Send a publications array from the create and validate tools. Each target can have its own platform_options: [{"account_id":"acct_example","platform_options":{"title":"Launch video","privacy_status":"private"}}]. Use separate tool calls when accounts need different content or media.

Use the CLI or API

The How to use dialog supplies the client connection instructions. After CLI setup, run these commands from the open-social repository directory:

Shell
export OPEN_SOCIAL_BASE_URL="https://opensocial.run"
export OPEN_SOCIAL_API_KEY="YOUR_API_KEY"
bun run cli -- accounts list
bun run cli -- capabilities bluesky
bun run cli -- posts validate --text "Hello from Open Social" --account acct_YOUR_ACCOUNT
bun run cli -- posts create --text "Hello from Open Social" --account acct_YOUR_ACCOUNT
bun run cli -- posts publish post_YOUR_POST
bun run cli -- posts status post_YOUR_POST

Replace the account ID with an ID from the account list. Replace the post ID with the ID returned by the create command. Choose a platform that matches your account. Run bun run cli -- --help for available commands.

For a local or self-hosted service, replace https://opensocial.run with your service address. Set the API key in your local environment. Do not commit it to the repository.

For REST requests, send your API key in the Authorization header. Use the same service address as the dashboard, with the /v1 path. See the API reference for request bodies and response fields.

To check a REST connection, use the same environment variables:

Shell
curl --fail-with-body "$OPEN_SOCIAL_BASE_URL/v1/accounts" \
  -H "Authorization: Bearer $OPEN_SOCIAL_API_KEY"

On this page