Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
parcadei avatar

Agentica Server

  • 457 installs
  • 3.9k repo stars
  • Updated January 26, 2026
  • parcadei/continuous-claude-v3

agentica-server is an agent skill that documents Agentica SDK plus Claude proxy startup, architecture, and debugging for developers who need Python agents using Claude CLI as the inference backend.

About

agentica-server is an internal reference skill in parcadei/continuous-claude-v3 for running Agentica SDK with a local Claude proxy so Python agents call Claude CLI as their LLM backend. The architecture chains Agentica SDK through ClientSessionManager to agentica-server on port 2345, then to claude_proxy.py on port 8080, and finally to claude -p. Environment variables INFERENCE_ENDPOINT_URL and S_M_BASE_URL point to different endpoints—the SDK talks to the session manager while the server forwards inference to the proxy. Startup requires three terminals in order: uv run python scripts/agentica/claude_proxy.py --port 8080, INFERENCE_ENDPOINT_URL=http://localhost:8080/v1/chat/completions uv run agentica-server --port 2345, then S_M_BASE_URL=http://localhost:2345 on the agent script. Developers reach for agentica-server when bootstrapping Agentica, debugging connection failures, or fixing agent tool-access and hallucination issues across the proxy chain.

  • agentica-server

Agentica Server by the numbers

  • 457 all-time installs (skills.sh)
  • +2 installs in the week ending Aug 4, 2026 (Skillselion tracking)
  • Ranked #910 of 4,347 Backend & APIs skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/parcadei/continuous-claude-v3 --skill agentica-server

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs457
repo stars3.9k
Last updatedJanuary 26, 2026
Repositoryparcadei/continuous-claude-v3

How do you run Agentica SDK with Claude proxy?

Use agentica-server for development tasks

Who is it for?

Python agent developers integrating Agentica SDK who want Claude CLI as a local OpenAI-compatible inference backend during development.

Skip if: Teams calling hosted Claude API directly without Agentica, or developers who do not need a local proxy and session-manager stack.

When should I use this skill?

User sets up Agentica development, debugs SDK-to-server connection issues, or troubleshoots agentica-server and claude_proxy.py startup failures.

What you get

Running Agentica server, Claude proxy, and SDK client with verified health checks and documented environment variables.

  • running proxy and server processes
  • health-check verification
  • debugged SDK connection

By the numbers

  • Three-terminal startup sequence across claude_proxy and agentica-server
  • Uses ports 8080 for Claude proxy and 2345 for Agentica session manager

Files

SKILL.mdMarkdownGitHub ↗

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

Related skills

How it compares

Use agentica-server for local Agentica-plus-Claude-CLI proxy wiring; direct Anthropic API skills skip the session-manager and claude_proxy.py stack entirely.

FAQ

What ports does agentica-server use?

agentica-server runs agentica-server on port 2345 for SDK ClientSessionManager connections, while claude_proxy.py listens on port 8080 for INFERENCE_ENDPOINT_URL OpenAI-compatible chat completion requests forwarded to Claude CLI.

What is the agentica-server startup order?

agentica-server requires starting claude_proxy.py first on port 8080, then agentica-server with INFERENCE_ENDPOINT_URL set, then the Agentica SDK script with S_M_BASE_URL=http://localhost:2345 in a third terminal.

When should developers load agentica-server?

agentica-server applies when starting Agentica with a Claude proxy, debugging SDK-server-proxy connection issues, setting up a fresh Agentica environment, or troubleshooting agent tool access and hallucination problems.

Backend & APIsbackendintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.