agentica-server
Agentica server + Claude proxy setup - architecture, startup sequence, debugging
Skill by rubicanjr
Chalk Labs
Need help deploying agentica-server?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/rubicanjr-agentica-server
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
agentica-server- Description
- Agentica server + Claude proxy setup - architecture, startup sequence, debugging
- License
- MIT
- Instructions
- 162 lines in SKILL.md · view on GitHub
Before installing
- Instructions call the network
Agent Skills spec issues
- allowed-tools: must be a space-separated string
- files: referenced but missing: scripts/agentica/claude_proxy.py, scripts/agentica/PATTERNS.md
Files (1)
- SKILL.md
SKILL.md (first lines)
# 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
| Variable | Set By | Used By | Purpose |
|----------|--------|---------|---------|
| `INFERENCE_ENDPOINT_URL` | Human | agentica-server | Where server sends LLM inference requests |
| `S_M_BASE_URL` | Human | Agentica SDK client | Where 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
```bash
uv run python scripts/agentica/claude_proxy.py --port 8080
```
### Terminal 2: Agentica Server
**MUST run from its directory:**
```bash
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
```bash
S_M_BASE_URL=http://localhost:2345 uv run python scripts/agentica/your_script.py
```
## Health Checks
```bash
# 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:
```bash
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.
```From rubicanjr/FinCognis, MIT.
More from rubicanjr/FinCognis
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Apr 8, 2026 (6 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/rubicanjr/FinCognis
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from rubicanjr
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get agentica-server running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
agentica-server skill. Agent Mart. https://agentmart.dev/skills/rubicanjr-agentica-server (last updated 2026-10-24)