agentleFS
omarioscomariosc/claude-p/docs/llms.txt

claude-p

llms.txt4 starsChanged 8 months agoMITView on GitHub

OpenAI-compatible API server that wraps Claude Code in headless mode (claude -p). Use Claude as a drop-in replacement for any OpenAI-compatible client (LangChain, LlamaIndex, Cline, OpenAI SDK, Continue, etc). claude-p is a thin HTTP server that translates OpenAI Chat Completions API requests into invocations of the Claude Code CLI in headless mode, then streams the response back in OpenAI's SSE format. It supports streaming, multi-turn sessions, system prompts, image inputs, and JSON-schema structured outputs. Tool use is disabled by default…

  • Reads credentials

The file

Files
llms.txt
# claude-p

> OpenAI-compatible API server that wraps Claude Code in headless mode (`claude -p`). Use Claude as a drop-in replacement for any OpenAI-compatible client (LangChain, LlamaIndex, Cline, OpenAI SDK, Continue, etc).

claude-p is a thin HTTP server that translates OpenAI Chat Completions API requests into invocations of the Claude Code CLI in headless mode, then streams the response back in OpenAI's SSE format. It supports streaming, multi-turn sessions, system prompts, image inputs, and JSON-schema structured outputs. Tool use is disabled by default for safety; the wrapper is purely a prompting interface.

## Documentation

- [README](https://github.com/omariosc/claude-p/blob/main/README.md): Project overview, quickstart, features
- [API Reference](https://github.com/omariosc/claude-p/blob/main/docs/API.md): Full endpoint documentation with request/response schemas
- [Examples](https://github.com/omariosc/claude-p/blob/main/docs/EXAMPLES.md): curl, Python, Node.js, OpenAI SDK examples
- [Architecture](https://github.com/omariosc/claude-p/blob/main/docs/ARCHITECTURE.md): How requests flow through the system

## Endpoints

- `GET /health`: Liveness check (no auth)
- `GET /v1/models`: List supported Claude models (auth required)
- `POST /v1/chat/completions`: Create a chat completion, optionally streaming (auth required)

## Authentication

All `/v1/*` endpoints require a Bearer token configured via the `API_KEYS` environment variable. The server itself authenticates to Anthropic via either:
- An `ANTHROPIC_API_KEY` environment variable (uses `--bare` mode for fast startup), or
- A pre-existing Claude Code OAuth login from `~/.claude/` (run `claude login` once inside the container)

## Optional

- [Full LLM ingestion bundle](https://github.com/omariosc/claude-p/blob/main/docs/llms-full.txt): Complete docs in one file for ingestion into AI agents

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.