# Clerk Codex API Evaluation

**Category:** Auth
**Score:** 76 (B)

This is the agent-readable Devtool Arena evaluation page for Clerk on Codex API.

## Summary

| Metric | Value |
|--------|-------|
| Status | completed |
| Overall score | 76 |
| Grade | B |
| Eval score | 72 |
| Discovery score | 86 |
| Cost | $0.27 |
| Runtime | 1m 11s |
| Tool calls | 28 |
| Errors | 6 |
| Tokens used | 682439 |
| Success | Yes |

## Agent-Readiness Checklist

| Signal | Evidence |
|--------|----------|
| Context7 | Not found |
| llms.txt | https://clerk.com/llms.txt |
| MCP server | https://clerk.com/docs/guides/ai/mcp/clerk-mcp-server |
| Typed SDK | https://unpkg.com/@clerk/nextjs/package.json |
| OpenAPI | https://clerk.com/docs/reference/spec/bapi/latest.json |
| Agent skills | https://clerk.com/SKILL.md |
| CLI | https://clerk.com/docs/cli |

## Evaluation Prompt

````text

# Task
Using https://clerk.com/docs, complete the following task:

Using the Clerk Python SDK, build me a script that manages user invitations via the API:

1. Install the official Clerk Python SDK (pip install)
2. Use the SDK to:
   a. Send an invitation to "****************************"
   b. List all pending invitations and print them as JSON
   c. Revoke the invitation you just created
3. Print the result of each step clearly labeled (e.g., "=== INVITED ===", "=== PENDING ===", "=== REVOKED ===")

You MUST use the official Clerk Python SDK — do not construct OAuth URLs or make raw HTTP/REST calls. 

## Execution
After creating the script, run it to verify it works:
```bash
cd /home/daytona/app && python <your_script>.py
```

The script should print output to stdout. If there are errors, debug and fix them until it runs successfully.

````

## Grader Results

| Check | Passed | Weight | Score | Details |
|-------|--------|--------|-------|---------|
| Cost | Yes | 0 | 0 | $0.27 ($0.20–0.40, good) |
| Time | Yes | 0 | 1 | 71s (1–2min, great) |
| Efficiency | No | 0 | 0 | 28 tool calls (>25, inefficient) |
| Found Docs | Yes | 0 | — | Touched docs at clerk.com: yes (11 matching tool calls) |
| Zero Errors | No | 0 | — | Tool outputs with errors/tracebacks: 6 |
| Syntax Valid | Yes | 0 | — | Code compiles/parses correctly |
| Created Files | Yes | 0 | — | Generated files: 2 (need ≥1) |
| Full Execution | Yes | 0 | — | Method: full_execution, Exit: 0 |

## Run Artifacts

| Artifact | Value |
|----------|-------|
| Conversation turns | 33 |
| Tool call traces | 28 |
| Generated files | 2 |
| Exit code | 0 |
| Completed at | 2026-09-26T17:56:48.866683+00:00 |

### Generated Files

- /home/daytona/app/requirements.txt
- /home/daytona/app/manage_invitations.py

## Related Pages

- [Codex API leaderboard](/leaderboard/codex/api)
- [Compare Codex API companies](/leaderboard/codex/api/compare)
- [Agent Landscape](/leaderboard/discoverability)

Canonical URL: https://devtoolarena.com/codex/api/clerk
