# Connect OpenClaw to SocialPoster

OpenClaw is a self-hosted agent gateway. It uses the same SocialPoster REST Agent API as Hermes Agent.

Human hub: https://socialposter.pro/agents
How-to: https://socialposter.pro/blog/connect-openclaw-to-socialposter
Agent API contract: https://socialposter.pro/pages/agent-docs.md
Comparison: https://socialposter.pro/blog/grok-bot-vs-openclaw

## Auth

- Create key at https://socialposter.pro/dashboard/account?tab=api-keys (`sp_live_…`)
- Store in gateway env or plugin config — never in chat
- Header: `Authorization: Bearer sp_live_…`

## REST base URL

`https://zqfnpnlzynhugeivtrka.supabase.co/functions/v1/agent-api`

## Gateway setup

1. Point your OpenClaw plugin or skill at the REST base URL above.
2. Give the gateway https://socialposter.pro/pages/agent-docs.md for endpoint reference.
3. Assign one SocialPoster project per bot.
4. Follow startup workflow: `/me` → `/projects` → `/connections` → draft → approve → `/posts`.

## Hermes migration

If moving from OpenClaw to Hermes (`hermes claw migrate`), SocialPoster credentials stay the same — only the agent host changes.

## MCP alternative

For Grok Bot or Cursor, prefer https://socialposter.pro/mcp (remote MCP) instead of REST.
