Skip to main content

agent-api-server

agent-api-server is a FastAPI-based API server for LangGraph agents. It exposes REST endpoints for thread, schema, graph, and runtime configuration management, and it serves a built-in web client from /site.

Features

  • FastAPI application factory for embedding or standalone deployment
  • LangGraph-oriented API routes under /api/v1
  • Built-in static client assets bundled in both sdist and wheel artifacts
  • Redis-backed thread storage and PostgreSQL checkpoint integration
  • Optional integration with config center, SSO, MCP, and model management services

Requirements

  • Python 3.11 to 3.13
  • Redis
  • PostgreSQL
  • Access to all runtime dependencies declared in pyproject.toml

Installation

Install from a package index that provides all required dependencies:

pip install agent-api-server

This project depends on llm-sdk and model-manage-client. If those packages are hosted on a private index in your environment, configure pip or Poetry to use that index before installation.

Configuration

The server reads configuration from environment variables. Common settings include:

REDIS_URL=redis://localhost:6379/0
POSTGRES_URL=postgresql://postgres:postgres@localhost:5432/postgres
MODEL_MANAGER_SERVICE_URL=http://127.0.0.1:10053
SERVER_PORT=8080
SERVER_WORKER_AMOUNT=1
LOG_LEVEL=INFO
ENABLE_MCP_SERVER=False

See .env_example for a more complete example.

Running the server

Run the application with Uvicorn:

uvicorn agent_api_server.service:create_fastapi_app --factory --host 0.0.0.0 --port 8080

After startup:

  • API root: http://127.0.0.1:8080/api/v1
  • OpenAPI docs: http://127.0.0.1:8080/docs
  • Built-in client: http://127.0.0.1:8080/site

Build

Build source and wheel distributions with Poetry:

poetry build

Repository

Source repository: https://gitlab.wise-paas.com/openai/agent_api_server

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agent_api_server-2.2.1.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agent_api_server-2.2.1-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file agent_api_server-2.2.1.tar.gz.

File metadata

  • Download URL: agent_api_server-2.2.1.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.11.14 Linux/6.8.0-101-generic

File hashes

Hashes for agent_api_server-2.2.1.tar.gz
Algorithm Hash digest
SHA256 009da2924411bbb6822024f172621a06743d0bcc117fd44ca75662866728d28d
MD5 e896434d772a5d1fb788a30e94f44de9
BLAKE2b-256 a35556f9661391bae85371f0e4a724612c0cc3a3180b92d963b45d0a70317f8b

See more details on using hashes here.

File details

Details for the file agent_api_server-2.2.1-py3-none-any.whl.

File metadata

  • Download URL: agent_api_server-2.2.1-py3-none-any.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.11.14 Linux/6.8.0-101-generic

File hashes

Hashes for agent_api_server-2.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ca6f5a67b58ca79aeaf2701d543a2a85fd58541d2a320d5a78a8e7d7d9d49866
MD5 afa7d4fd159829a4ec9d66c222027c92
BLAKE2b-256 719c4a4e4e396e228861dccd1f933620fbc7b6ed3ef2150fea827197892e8916

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2.2.1 This release

2 files

2.2.0

2 files

2.1.13

2 files

2.1.12

2 files

2.1.11

2 files

2.1.10

2 files

2.1.9

2 files

2.1.8

2 files

2.1.7

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page