Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

README.md

28 lines660 Bytes

1# Python AG-UI server
2​
3A dependency-free AG-UI server built with Python's standard library. It uses
4`ThreadingHTTPServer` for HTTP and `urllib.request` to stream OpenAI or
5Anthropic responses.
6​
7## Prerequisites
8​
9- Python 3.9+
10- An OpenAI or Anthropic API key
11​
12## Run
13​
14From `examples/ag-ui`:
15​
16```bash
17OPENAI_API_KEY=... pnpm dev:python
18```
19​
20The server listens on `http://127.0.0.1:8006`. Its endpoints are:
21​
22- `GET /health`
23- `POST /` with an AG-UI `RunAgentInput` body
24- `OPTIONS /` for CORS preflight
25​
26This server exists to demonstrate the portability of the AG-UI wire protocol.
27It is intentionally a local development example, not a production HTTP
28server.