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

# OpenClaw plugin

> Use memex-agent-skill with OpenClaw and configure Memex credentials separately

OpenClaw should use the same portable [Skill.md](https://docs.memex.garden/for-agents/skill-md.md) file.

Use these values to connect OpenClaw to Memex.

> [card] [Open the skill](https://docs.memex.garden/for-agents/skill-md.md)
>
> Use the same `memex-agent-skill` markdown in OpenClaw.

> [card] [Get credentials](https://docs.memex.garden/general/authentication.md)
>
> OpenClaw needs the same Memex API key as every other integration.

## Required values

OpenClaw integrations need:

* `MEMEX_API_KEY`

If your setup uses MCP directly, also keep:

* `MEMEX_MCP_URL=https://memex.garden/api/mcp`

## Environment variables

```bash theme={null}
export MEMEX_API_KEY="YOUR_MEMEX_API_KEY"
export MEMEX_MCP_URL="https://memex.garden/api/mcp"
```

## Config example

If your OpenClaw install supports env-backed per-skill settings, wire the Memex values into the skill entry:

```json5 theme={null}
{
    skills: {
        entries: {
            'memex-agent-skill': {
                enabled: true,
                apiKey: {
                    source: 'env',
                    provider: 'default',
                    id: 'MEMEX_API_KEY',
                },
                mcpUrl: {
                    source: 'env',
                    provider: 'default',
                    id: 'MEMEX_MCP_URL',
                },
            },
        },
    },
}
```

If your OpenClaw version uses different field names, keep the same underlying env vars and map them to your local schema.

## Which Memex surface to call

* If OpenClaw can speak MCP, point it at `https://memex.garden/api/mcp`.
* If OpenClaw only issues HTTP requests, use the routes and parameter shapes from [Available endpoints](https://docs.memex.garden/general/available-endpoints.md) and send `X-Api-Key: YOUR_MEMEX_API_KEY` on each request.

## Troubleshooting

* Missing credentials: [Authentication](https://docs.memex.garden/general/authentication.md)
* Out of credits: [Buy credits](https://docs.memex.garden/general/buy-credits.md)
* Bad request shape: [Available endpoints](https://docs.memex.garden/general/available-endpoints.md)


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