emreuyguc

Native Agent API — Development skill for Claude Code

Development community

Self-hosted HTTP API for Claude Code and Codex CLI.

How to install Native Agent API

This entry records only its repository, not the path inside it, so there is no exact command to give. Open emreuyguc/native-agent-api and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Native Agent API does

Self-hosted HTTP API for Claude Code and Codex CLI. Run the real coding-agent CLI on any machine and use it from web, mobile or any app over REST, SSE and WebSocket, with your existing subscription.

Alternatives in Development

  • Happy — Mobile and Web client for Claude Code, with realtime voice, encryption and fully featured 16.3k ★
  • Agent Of Empires — Manage multiple Claude Code, OpenCode agents from either TUI or Web for easy access on mobile 3.1k ★
  • React Native Movie App — Get hands-on with React Native and Expo in this crash course 787 ★

README

native-agent-api

[![CI](https://github.com/emreuyguc/native-agent-api/actions/workflows/ci.yml/badge.svg)](https://github.com/emreuyguc/native-agent-api/actions/workflows/ci.yml) [![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/emreuyguc/native-agent-api/badge)](https://scorecard.dev/viewer/?uri=github.com/emreuyguc/native-agent-api) [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE)

**An HTTP API for Claude Code and Codex CLI.** native-agent-api runs the real coding-agent CLI and serves it over REST, Server-Sent Events and WebSocket. Sessions, login, tools, skills, hooks, plugins, subagents and MCP servers keep working exactly as in a terminal.

How a run works: 1. your app sends a prompt with an HTTP POST; 2. native-agent-api runs the real Claude Code or Codex CLI; 3. native events stream back over SSE or WebSocket; 4. the result arrives with token usage.

**Status: 0.x.** The API may still change between minor versions; see the [changelog](CHANGELOG.md).

Why

The AI providers' own CLIs are excellent agents. Claude Code and Codex CLI manage sessions, run tools, skills, hooks, plugins and MCP servers, and sign in with your subscription. But they are built for a person at a terminal on one machine.

Once the CLI runs on a server or another computer, reaching it takes extra tools:

  • SSH with tmux or screen
  • remote desktops such as RustDesk, VNC or Chrome Remote Desktop
  • browser terminals such as ttyd
  • agent apps with remote companions, such as Orca or Hermes Desktop

These give a person a screen. They do not give your software an interface.

native-agent-api turns the native CLI into a service:

  • Reach it from anything. Web apps, mobile apps, bots, scripts and other services talk to the agent over plain HTTP, SSE or WebSocket, from any language.
  • Use your subscription, not an API key. The CLI keeps its own