Skip to main content
Deploy AG-Kit server on your own infrastructure for full control over your Agent applications.

Standalone Server

Run AG-Kit as an independent service:
from ag_kit_py.server import AGKitAPIApp

def create_agent():
    return {"agent": my_agent}

# One-line server startup
AGKitAPIApp().run(create_agent, port=8000)

Framework Integration

Integrate with existing Python/TypeScript applications:
from fastapi import FastAPI
from ag_kit_py.server import AGKitAPIApp

# Your existing FastAPI app
app = FastAPI(title="My Application")

# Add AG-Kit routes
agkit_app = AGKitAPIApp().build(create_agent, base_path="/api/agent")
app.mount("/api/agent", agkit_app)

Production Deployment

Deploy with process managers for production:
# Install Gunicorn
pip install gunicorn

# Run with multiple workers
gunicorn -w 4 -k uvicorn.workers.UvicornWorker app:app

Next Steps