moises-paschoalick

AI Agent Server — AI skill for Claude Code

AI community

Self-hosted AI agent server in Java (Spring Boot + LangChain4j).

How to install AI Agent Server

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

What AI Agent Server does

Self-hosted AI agent server in Java (Spring Boot + LangChain4j). Drop-in replacement for the OpenAI Assistants API: keep your code, swap the base URL, and run it on OpenAI, Claude, Gemini, Grok or OpenRouter. Client and server tools, SSE streaming, web playground, one Docker image.

Alternatives in AI

  • JeecgBoot — 【低代码v2.0,一句话即可生成整个系统】企业级AI低代码平台,一键生成前后端代码甚至整个系统 47.5k ★
  • Azure Vision Java — Image captioning, OCR, and object detection 1.8k ★
  • AI Agent Interview Guide — AI Agent 面试全攻略:从零到Offer,包含200+面试题、企业级项目(Python/Java/Go)、简历模板、STAR面试稿、哆啦A梦漫画图解 637 ★

README

Agent Server (ai-agent-server)

[![CI](https://github.com/moises-paschoalick/ai-agent-server/actions/workflows/ci.yml/badge.svg)](https://github.com/moises-paschoalick/ai-agent-server/actions/workflows/ci.yml)

Agent server in Java/Spring with LangChain4j, plus a web playground. The goal is an API compatible with the OpenAI Assistants API (`/v1`), with tools executed both on the server and by the client, routed to multiple LLM providers.

This is a monorepo:

backend/     Agent Server (Java 21, Spring Boot, LangChain4j, Gradle)
frontend/    Playground (React, Vite, Tailwind): chat, client tool cycle, threads, tools, model, prompt, /v1 assistants (CRUD)
docker-compose.yml      backend + frontend
Dockerfile              single image: backend + frontend in one container (see DEPLOYMENT.md)
.env.example            one .env at the root for everything

Quick start

cp .env.example .env    # set OPENAI_API_KEY, AGENT_API_KEYS and AGENT_API_KEY (one of AGENT_API_KEYS)
docker compose up --build

Open http://localhost:3000 for the playground; the API is at http://localhost:8080.

**Status:** feature complete for the planned scope. The OpenAI-compatible `/v1` API (assistants, threads, messages, runs with polling) and the sync API (`/chat` with client tools) are implemented, checked field by field against OpenAI's object format. The playground talks to the sync API and manages the `/v1` assistants. Backend and frontend ship as containers for Railway or any Docker host. See [Known differences](#known-differences-from-openai) before migrating.


🚀 Tech Stack

Layer Choice Version
Language Java (Gradle toolchain) 21
Framework Spring Boot (webmvc) 4.1.2
LLM LangChain4j (via BOM): open-ai, anthropic, google-ai-gemini 1.21.0
Concurrency Virtual threads Java 21
Build Gradle wrapper —
Frontend React, Vite, TypeScript, Tailwind CSS (nginx in the container) 19, 6, 5.8, 4