AG

agentica-server

Manages the startup sequence and environment configuration for running Agentica SDK with a Claude CLI proxy.

Install

mkdir -p .claude/skills/agentica-server && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/2319" && unzip -o skill.zip -d .claude/skills/agentica-server && rm skill.zip

Installs to .claude/skills/agentica-server

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Agentica server + Claude proxy setup - architecture, startup sequence, debugging
80 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Run the Claude proxy on a specified port
  • Start the Agentica server from its directory
  • Set `INFERENCE_ENDPOINT_URL` for the Agentica server
  • Set `S_M_BASE_URL` for the Agentica SDK client
  • Perform health checks on the Claude proxy and Agentica server
  • Troubleshoot `APIConnectionError` after agent spawn

How it works

The skill outlines the architecture and startup sequence for connecting the Agentica SDK to the Claude CLI via an Agentica server and a Claude proxy, using specific environment variables for communication.

Inputs & outputs

You give it
Environment variables and startup commands for proxy, server, and client
You get back
A functional Agentica SDK environment with Claude CLI as the inference backend

When to use agentica-server

  • Starting Agentica development
  • Debugging proxy connection issues
  • Setting up local inference environments
  • Troubleshooting agent tool access

About this skill

Agentica Server + Claude Proxy Setup

Complete reference for running Agentica SDK with a local Claude proxy. This enables Python agents to use Claude CLI as their inference backend.

When to Use

Use this skill when:

  • Starting Agentica development with Claude proxy
  • Debugging connection issues between SDK, server, and proxy
  • Setting up a fresh Agentica environment
  • Troubleshooting agent tool access or hallucination issues

Architecture

Agentica SDK (client code)
    | S_M_BASE_URL=http://localhost:2345
    v
ClientSessionManager
    |
    v
Agentica Server (agentica-server)
    | INFERENCE_ENDPOINT_URL=http://localhost:8080/v1/chat/completions
    v
Claude Proxy (claude_proxy.py)
    |
    v
Claude CLI (claude -p)

Environment Variables

VariableSet ByUsed ByPurpose
INFERENCE_ENDPOINT_URLHumanagentica-serverWhere server sends LLM inference requests
S_M_BASE_URLHumanAgentica SDK clientWhere SDK connects to session manager

KEY: These are NOT the same endpoint!

  • SDK connects to server (port 2345)
  • Server connects to proxy (port 8080)

Startup Sequence

Must start in this order (each in a separate terminal):

Terminal 1: Claude Proxy

uv run python scripts/agentica/claude_proxy.py --port 8080

Terminal 2: Agentica Server

MUST run from its directory:

cd workspace/agentica-research/agentica-server
INFERENCE_ENDPOINT_URL=http://localhost:8080/v1/chat/completions uv run agentica-server --port 2345

Terminal 3: Your Agent Script

S_M_BASE_URL=http://localhost:2345 uv run python scripts/agentica/your_script.py

Health Checks

# Claude proxy health
curl http://localhost:8080/health

# Agentica server health
curl http://localhost:2345/health

Common Errors & Fixes

1. APIConnectionError after agent spawn

Symptom: Agent spawns successfully but fails on first call with connection error.

Cause: Claude proxy returning plain JSON instead of SSE format.

Fix: Proxy must return Server-Sent Events format:

data: {"choices": [...]}\n\n

2. ModuleNotFoundError for agentica-server

Symptom: ModuleNotFoundError: No module named 'agentica_server'

Cause: Running uv run agentica-server from wrong directory.

Fix: Must cd workspace/agentica-research/agentica-server first.

3. Agent can't use Read/Write/Edit tools

Symptom: Agent asks for file contents instead of reading them.

Cause: Missing --allowedTools in claude_proxy.py CLI call.

Fix: Proxy must pass tool permissions:

claude -p ... --allowedTools Read Write Edit Bash

4. Agent claims success but didn't do task

Symptom: Agent says "I've created the file" but file doesn't exist.

Cause: Hallucination - agent describing intended actions without executing.

Fix: Added emphatic anti-hallucination prompt in REPL_BASELINE:

CRITICAL: Use ACTUAL tools. Never DESCRIBE using tools.

5. Timeout on agent.call()

Symptom: Call hangs for 30+ seconds then times out.

Cause: Claude CLI taking too long or stuck in a loop.

Fix: Check proxy logs for the actual CLI output. May need to simplify prompt.

Key Files

FilePurpose
scripts/agentica/claude_proxy.pyOpenAI-compatible proxy with SSE streaming
workspace/agentica-research/agentica-server/Local agentica-server installation
scripts/agentica/PATTERNS.mdMulti-agent pattern documentation

Quick Verification

Test the full stack:

# 1. Verify proxy responds
curl http://localhost:8080/health

# 2. Verify server responds
curl http://localhost:2345/health

# 3. Test inference through proxy
curl http://localhost:8080/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{"model":"claude","messages":[{"role":"user","content":"Say hello"}]}'

Checklist

Before running agents:

  • Claude proxy running on port 8080
  • Agentica server running on port 2345 (from its directory)
  • S_M_BASE_URL set for client scripts
  • INFERENCE_ENDPOINT_URL set for server
  • Both health checks return 200

Limitations

  • The Claude proxy must return Server-Sent Events format
  • The Agentica server must be run from its specific directory
  • The Claude proxy must pass tool permissions via `--allowedTools`

How it compares

This skill provides a structured setup and debugging guide for a specific Agentica-Claude integration, unlike general server or proxy configuration instructions.

Compared to similar skills

agentica-server side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
agentica-server (this skill)27moReviewIntermediate
mcp-builder1363moReviewAdvanced
copilot-sdk74moReviewIntermediate
openrouter-function-calling527dReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

mcp-builder

anthropics

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

136215

copilot-sdk

github

Build agentic applications with GitHub Copilot SDK. Use when embedding AI agents in apps, creating custom tools, implementing streaming responses, managing sessions, connecting to MCP servers, or creating custom agents. Triggers on Copilot SDK, GitHub SDK, agentic app, embed Copilot, programmable agent, MCP server, custom agent.

763

openrouter-function-calling

jeremylongshore

Implement function/tool calling with OpenRouter models. Use when building agents or structured outputs. Trigger with phrases like 'openrouter functions', 'openrouter tools', 'openrouter agent', 'function calling'.

539

mcp-developer

Jeffallan

Use when building MCP servers or clients that connect AI systems with external tools and data sources. Invoke for MCP protocol compliance, TypeScript/Python SDKs, resource providers, tool functions.

16

create-mcp-servers

glittercowboy

Create Model Context Protocol (MCP) servers that expose tools, resources, and prompts to Claude. Use when building custom integrations, APIs, data sources, or any server that Claude should interact with via the MCP protocol. Supports both TypeScript and Python implementations.

15

setup-tooluniverse

mims-harvard

Install and configure ToolUniverse with MCP integration for any AI coding client (Cursor, Claude Desktop, Windsurf, VS Code, Codex, Gemini CLI, Trae, Cline, Antigravity, OpenCode, etc.). Covers uv/uvx setup, MCP configuration, API key walkthrough, skill installation, and upgrading. Use when setting up ToolUniverse, configuring MCP servers, troubleshooting installation issues, upgrading versions, or when user mentions installing ToolUniverse or setting up scientific tools.

15

Search skills

Search the agent skills registry