> ## Documentation Index
> Fetch the complete documentation index at: https://docs.posttu.com/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenClaw Integration

> Connect OpenClaw and custom workspace skills securely to your Posttu account using Developer API Keys or OAuth 2.1 authentication.

[OpenClaw](https://openclaw.ai) is an open-source agentic framework that allows developers to build, test, and run custom AI agents equipped with workspace skills.

By connecting OpenClaw to Posttu's unified **Streamable HTTP** MCP endpoint, you can empower your OpenClaw agent to schedule posts, draft updates, monitor calendars, and reply to inbox threads on your behalf.

***

## 1. Remote Server Configuration

OpenClaw supports connecting directly to remote Streamable HTTP servers by editing your local configuration file (usually located at `~/.codex/config.toml`, or `.codex/config.toml` for project-scoped configurations).

You can authenticate your OpenClaw agent using **either** your workspace-scoped Developer API Key or an OAuth 2.1 access token.

### Option A: Using a Developer API Key (Recommended)

Generate a Developer API Key from your Posttu dashboard (Settings → API Keys) and store it in your local environment variables (e.g. `export POSTTU_API_KEY="your_api_key_here"`).

Add the following table to your `config.toml` file:

```toml theme={null}
[mcp_servers.posttu]
url = "https://posttu.com/api/v1/mcp"
bearer_token_env_var = "POSTTU_API_KEY"
```

### Option B: Using OAuth 2.1 Access Tokens

If your agent supports full interactive OAuth login flows, configure the endpoint and log in directly via the OpenClaw CLI:

```toml theme={null}
# In config.toml
[mcp_servers.posttu]
url = "https://posttu.com/api/v1/mcp"
```

Then run the CLI authentication command to sign in:

```bash theme={null}
openclaw gateway login posttu
```

***

## 2. Install First-Party Posttu Skills

Skills teach your OpenClaw agent *how* and *when* to invoke specific tools. Posttu provides a pre-built unified OpenClaw skill that maps to all of our MCP tool capabilities.

This skill utilizes a rich multi-file structure designed for maximum token efficiency and progressive disclosure. The central `SKILL.md` file contains the exact triggering context, ensuring the LLM only loads instructions when needed, and routes requests to domain-specific guides.

### Bundle Contents

We ship three first-party skills in `openclaw-skills/` (also discoverable automatically by MCP `2026-07-28` clients via the native **MCP Skills** extension):

* **`posttu`**: Core workspace operations (53 tools):
  * `SKILL.md`: Central triggering gateway and routing map.
  * `skill-card.md`: Governance, identity, risk, and mitigations metadata.
  * `references/api-guide.md`: Direct HTTP REST API authentication and execution guide.
  * `references/posts.md`: Detailed dual MCP + REST guides for posts, channels, media, bulk scheduling, and approvals.
  * `references/calendar.md`: Detailed dual MCP + REST guides for structured schedules and calendars.
  * `references/tags.md`: Detailed dual MCP + REST guides for tag CRUD and item binding.
  * `references/inbox.md`: Detailed dual MCP + REST guides for direct messages, comments, social listening, pinning, and priorities.
  * `references/workflows.md`: Detailed dual MCP + REST guides for automation canvas steps, connections, pieces, and runs.
* **`posttu-platform`**: Direct operations on 18 connected social platforms (462 tools).
* **`posttu-scraper`**: Public social media data scraping across 27+ platforms (164 tools, requires `scrape:read`).

### Installation Steps

To install the pre-built skills in your active OpenClaw workspace:

1. **Locate your OpenClaw workspace**: By default, OpenClaw looks for workspace skills in `~/.openclaw/workspace/skills/`.
2. **Copy the bundled skills**:
   ```bash theme={null}
   cp -r ./openclaw-skills/* ~/.openclaw/workspace/skills/
   ```
3. **Verify the installation**:
   Run the following CLI command to verify the skills are successfully loaded:
   ```bash theme={null}
   openclaw skills list
   ```
4. **Restart the Gateway**:
   Restart the gateway process to apply changes:
   ```bash theme={null}
   openclaw gateway restart
   ```

***

## 3. Best Practices

* **Date and Time Formatting**: When scheduling posts, ensure the agent always formats dates as UTC ISO-8601 strings (e.g. `2026-05-25T10:00:00Z`).
* **Tag Management**: The agent must always query existing tags via `list_tags` before creating or binding a tag to prevent duplicate names.
* **Bulk Uploading**: Use the `bulk_upload_posts` tool to schedule batches of content efficiently, specifying platform-specific attributes like subreddits or visibility rules where required.
* **Thread Tracking**: Utilize the pin feature (`update_thread_pin`) or priority updates (`update_thread_priority`) to flag conversations requiring human intervention.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.