Xpersona
C

claude

CLAWHUB · Unverified

Call Claude models through RunAPI using the Anthropic Messages protocol. Use for Claude chat, streaming, vision, tools, reasoning, token counting, or an existing compatibility client that needs the conditional reference.

62
Rank
84
Safety
1.8k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.8K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s1771k6pjxksnjws51x2htfjvd876syh:runapi-claude
  1. Install using `clawhub skill install s1771k6pjxksnjws51x2htfjvd876syh:runapi-claude` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/runapi-ai/runapi-claude before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-runapi-ai-runapi-claude/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

96,943 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: claude
description: Call Claude models through RunAPI using the Anthropic Messages protocol. Use for Claude chat, streaming, vision, tools, reasoning, token counting, or an existing compatibility client that needs the conditional reference.
documentation: https://runapi.ai/models/claude.md
provider_page: https://runapi.ai/providers/anthropic.md
catalog: https://runapi.ai/models.md
metadata:
  openclaw:
    homepage: https://runapi.ai/models/claude
    primaryEnv: ANTHROPIC_API_KEY
    requires:
      env: [ANTHROPIC_API_KEY, ANTHROPIC_BASE_URL]
    envVars:
    - {name: ANTHROPIC_API_KEY, required: true, description: RunAPI API key used by Anthropic-compatible clients.}
    - {name: ANTHROPIC_BASE_URL, required: true, description: Set to https://runapi.ai for Claude on RunAPI.}
---

# Claude on RunAPI

Use Anthropic Messages at `https://runapi.ai` with `POST /v1/messages` as the primary protocol.

## Primary protocol recipe

### Authenticate

Set `ANTHROPIC_API_KEY` to a RunAPI API key and `ANTHROPIC_BASE_URL` to
`https://runapi.ai`. The SDK sends `x-api-key`; Bearer authentication is also accepted.

### Send request

```python
import anthropic
client = anthropic.Anthropic(api_key="YOUR_RUNAPI_TOKEN", base_url="https://runapi.ai")
message = client.messages.create(
    model="claude-sonnet-5",
    max_tokens=1024,
    messages=[{"role": "user", "content": "Explain this decision."}],
)
print(message.content[0].text)
print(message.usage)
```

`max_tokens` is required. For long output, use `client.messages.stream(...)`
and consume `stream.text_stream` through the terminal event. Add image blocks,
function tools, reasoning controls, or token counting only when the current
RunAPI contract verifies them for the selected exact model.

### Verify result

Require final text, `stop_reason`, and authoritative `usage`. A stream is
complete only after terminal Usage and `message_stop`. Token counting estimates
input only; actual response Usage remains authoritative.

### Stop boundaries

Correct a rejected shape once using the structured error. Retry transport once
only before any response or Usage and when replay is safe. Record a terminal
error and stop without changing model or protocol.

## Compatibility protocols

Load [compatibility protocols](references/compatibility-protocols.md) only when an existing client requires OpenAI Chat/Responses or Gemini contents.

## Supported models

| Model ID | Use when |
|---|---|
| `claude-fable-5-1` | — |
| `claude-fable-5` | Flagship state-of-the-art coding, reasoning, and vision |
| `claude-sonnet-5` | Near-Opus coding at Sonnet cost |
| `claude-opus-5` | Latest Opus frontier reasoning |
| `claude-opus-4-8` | Strongest general model |
| `claude-opus-4-7` | Previous Opus generation |
| `claude-opus-4-6` | High-end reasoning |
| `claude-sonnet-4-6` | Balanced reasoning and speed |
| `claude-opus-4-5-20251101` | Dated Opus 4.5 snapshot |
| `claude-sonnet-4-5-20250929` | Dated Sonnet 4.5 snapshot |
| `claude-h

_meta.json

{
  "ownerId": "kn70me4rk7jqjt92evshjeb5z18768g7",
  "slug": "runapi-claude",
  "version": "0.2.17",
  "publishedAt": 1790770526518
}

references/compatibility-protocols.md

# Claude compatibility protocols

Load this reference only for an existing OpenAI or Gemini client. New Claude integrations use Anthropic Messages from the main skill.

For OpenAI clients, set the base URL to `https://runapi.ai/v1`, use a RunAPI
key, and call Chat Completions or Responses with a supported exact Claude model
ID. Verify `finish_reason` plus `usage` for Chat, or `response.completed` plus
`usage` for Responses. SSE ends at `[DONE]`.

For Gemini contents, set `RUNAPI_MODEL` to a supported exact model ID and use
`https://runapi.ai/v1beta/models/$RUNAPI_MODEL:generateContent`
or `streamGenerateContent` with `x-goog-api-key`. Verify candidates,
`finishReason`, and `usageMetadata`.

Apply one evidence-backed shape correction, at most one safe pre-response
transport retry, and no automatic model or protocol hopping.

skill-card.md

## Description:

Guides developers in using Claude models through RunAPI with the Anthropic Messages protocol and optional OpenAI or Gemini client compatibility.

This skill is ready for commercial/non-commercial use.

## Publisher:

[runapi-ai](https://clawhub.ai/user/runapi-ai)

### License/Terms of Use:

MIT-0

## Use Case:

Developers use this skill to configure RunAPI credentials and call Claude models for chat, streaming, vision, tools, reasoning, and token counting. It also guides developers migrating existing OpenAI or Gemini clients.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Prompts sent through this integration go to RunAPI's service.

Mitigation: Use only when routing prompts to RunAPI is intended and permitted by your data-handling policy.

Risk: Using this integration requires a RunAPI API key.

Mitigation: Provide the key through the documented environment variable and protect it as a credential.

## Reference(s):

- [Claude on RunAPI documentation](https://runapi.ai/models/claude.md)
- [Claude on RunAPI model page](https://runapi.ai/models/claude)
- [RunAPI Anthropic provider documentation](https://runapi.ai/providers/anthropic.md)
- [RunAPI model catalog](https://runapi.ai/models.md)
- [Compatibility protocols](references/compatibility-protocols.md)
- [ClawHub skill release](https://clawhub.ai/runapi-ai/skills/runapi-claude)

## Skill Output:

**Output Type(s):** [Text, Code, Configuration instructions, Guidance]

**Output Format:** [Markdown with Python examples and configuration guidance]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Describes request verification and retry boundaries; no executable files are produced.]

## Skill Version(s):

0.2.17 (source: server-resolved release)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to claude and adjacent AI workflows.