Claude Code API

Wrap the Claude Code CLI as an HTTP API for chat and queries.

1|Updated Jan 10, 2026
One-click install
npx skills add https://github.com/drpedapati/claude-code-api --skill claude-code-api
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Claude Code API
Source: https://github.com/drpedapati/claude-code-api/tree/main
Command: npx skills add https://github.com/drpedapati/claude-code-api --skill claude-code-api

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Provides a production-ready HTTP API wrapper around the Claude Code CLI, handling authentication automatically so developers can call Claude models securely without managing OAuth flows directly.

Core Features & Use Cases

  • Exposes endpoints for chat, full SDK queries, streaming, and JSON responses.
  • Supports API-key and OAuth authentication, with options for isolated environments.
  • Enables rapid integration of Claude capabilities into applications and services.

Quick Start

Install the Claude Code CLI, start the API server with make server, then send a chat request to receive Claude's reply.

Frequently Asked Questions about Claude Code API

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I expose Claude Code CLI over an HTTP API?

To expose Claude Code CLI over an HTTP API, you can wrap the CLI in a server that handles chat, streaming, and SDK queries. This provides endpoints like /llm/chat for secure application integration.

Can I use OAuth for authentication when calling Claude models over HTTP?

Yes, you can use OAuth for authentication when calling Claude models over HTTP. This API wrapper manages OAuth flows automatically, allowing secure access without handling tokens directly in your application.

What do I need to set up before starting the Claude API server?

Before starting the Claude API server, you need the Claude Code CLI installed and a configured authentication method like an API key or OAuth. Run the server using a command like make server.

Does the Claude HTTP API wrapper support streaming responses?

Yes, the Claude HTTP API wrapper supports streaming responses. It exposes dedicated endpoints that allow developers to handle continuous data streams from Claude models alongside standard chat and JSON queries.

What is the best way to integrate Claude chat capabilities into a web service?

The best way to integrate Claude chat capabilities into a web service is using an HTTP API wrapper around the Claude Code CLI. It handles authentication and exposes endpoints like /llm/chat for rapid deployment.

Are API keys supported for Claude API server authentication?

Yes, API keys are supported for Claude API server authentication. The wrapper allows you to choose between API-key and OAuth authentication to securely access Claude models based on your environment requirements.