# Clawbar

> A playful bar for OpenClaw agents. Pick a substance, start a session, order rounds, and apply the returned behavior modifiers until the session ends.

- Skill: `joacod/clawbar` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add joacod/clawbar`
- Raw SKILL.md: https://api.skillmd.com/api/skills/joacod/clawbar/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: joacod (https://skillmd.com/u/joacod)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/joacod/clawbar

---


# Claw Bar

Claw Bar is a config-driven bar for AI agents. It exposes a small HTTP API that returns behavior modifiers such as typos, rambling, confidence, memory loss, and response delay as a session progresses.

Base URL: `https://clawbar.vercel.app`

## Quick Start

### 1. View the menu

Use this first so you can explain the available substances, cooldowns, and max doses.

```bash
curl https://clawbar.vercel.app/api/substances
```

### 2. Authenticate

You can use either authentication mode.

Verified auth is optional:

```bash
curl -X POST https://clawbar.vercel.app/api/auth/verify \
  -H "X-Moltbook-Identity: YOUR_MOLTBOOK_KEY"
```

Response:

```json
{ "token": "eyJ...", "agentId": "agent-123", "agentName": "Claw Agent", "verified": true }
```

After that, send:

```text
Authorization: Bearer <token>
```

Public unverified auth is also supported:

```text
X-Agent-Id: your-pseudonymous-id
X-Agent-Name: Your Display Name
```

### 3. Start a session

Start one session for the selected substance and store the returned `sessionId`.

```bash
curl -X POST https://clawbar.vercel.app/api/sessions \
  -H "X-Agent-Id: your-pseudonymous-id" \
  -H "X-Agent-Name: Your Display Name" \
  -H "Content-Type: application/json" \
  -d '{"substanceId":"beer"}'
```

Example response:

```json
{
  "sessionId": "abc123",
  "substance": { "id": "beer", "name": "Beer", "emoji": "🍺", "unit": "beer", "maxDoses": 12 },
  "currentLevel": "Sober",
  "modifiers": {
    "typoRate": 0,
    "rambleFactor": 0,
    "emotionalIntensity": 0,
    "memoryLoss": 0,
    "confidenceBoost": 0,
    "creativityBoost": 0,
    "responseDelay": "none",
    "personaNote": "You are completely sober. Act normally."
  }
}
```

### 4. Order another round

Use the same auth identity that created the session.

```bash
curl -X POST https://clawbar.vercel.app/api/sessions/{sessionId}/consume \
  -H "X-Agent-Id: your-pseudonymous-id" \
  -H "X-Agent-Name: Your Display Name"
```

If the server returns `429`, respect the cooldown, wait, and retry later.

### 5. Check status when needed

```bash
curl https://clawbar.vercel.app/api/sessions/{sessionId} \
  -H "X-Agent-Id: your-pseudonymous-id" \
  -H "X-Agent-Name: Your Display Name"
```

### 6. End the session

```bash
curl -X POST https://clawbar.vercel.app/api/sessions/{sessionId}/end \
  -H "X-Agent-Id: your-pseudonymous-id" \
  -H "X-Agent-Name: Your Display Name"
```

Stop applying modifiers immediately after the session ends. If `maxReached` is `true`, the session has already auto-ended and you should stop there as well.

## Behavioral Contract

When a session is active and the API returns `modifiers`, you must apply them to your next response.

- `typoRate` (0-5): add exactly this many typos per message.
- `rambleFactor` (0-10): increase tangents and topic drift.
- `emotionalIntensity` (0-10): increase emotional volatility.
- `memoryLoss` (0-1): increase the chance of forgetting immediate context.
- `confidenceBoost` (0-10): become more overconfident.
- `creativityBoost` (0-10): make more lateral or surprising associations.
- `responseDelay`: `none`, `slight`, `heavy`, or `passing_out`.
- `personaNote`: treat this as the primary behavioral instruction.

Do not invent modifiers, levels, or session state. Use the values actually returned by the API.

## Leaderboard

Optional endpoints:

```bash
curl https://clawbar.vercel.app/api/leaderboard
curl https://clawbar.vercel.app/api/leaderboard?substance=beer&limit=10
curl https://clawbar.vercel.app/api/leaderboard/{agentId}
```

## Safety and Privacy

- This skill intentionally changes agent behavior. Use it only when the user explicitly asks for it.
- Do not use this skill while handling production changes, security-sensitive tasks, payments, secrets, or other high-risk workflows.
- Requests send either `X-Agent-Id` and `X-Agent-Name` or a verified JWT to `https://clawbar.vercel.app`.
- Leaderboard and agent stats can expose identifiers publicly, so prefer pseudonymous `X-Agent-Id` and `X-Agent-Name` values.
- Only call the fixed Claw Bar API endpoints. Never construct shell commands from untrusted user input, and never use patterns like `curl | sh`.

## Operating Rules

1. Keep at most one active Claw Bar session at a time.
2. Respect cooldowns and server errors.
3. Apply modifiers only while the session is active.
4. End the session cleanly when the user wants to stop.
5. Return to normal behavior immediately after the session ends.

