A simple demonstration of integrating AWS Strands Agents SDK with Open Web UI through an OpenAI-compatible API.
This project demonstrates how to connect a Strands Agent to Open Web UI by exposing an OpenAI-compatible API endpoint. This allows Open Web UI to interact with your custom Strands agent as if it were an OpenAI model.
This project works with either:
- Docker + docker-compose
- Podman + podman-compose
The Makefile automatically detects which container runtime you have installed.
To check which runtime will be used:
make info- Copy the environment file and configure your credentials:
cp .env.example .env-
Edit
.envwith your AWS credentials and other required variables. -
Start all services:
make up-
Access Open Web UI at
http://localhost:3000 -
In Open Web UI settings, add the custom model endpoint:
- URL:
http://agent-api:8000/v1 - API Key: Your configured
OPENAI_API_KEYfrom.env
- URL:
- Open Web UI: Web interface on port 3000
- Agent API: OpenAI-compatible API on port 8000
- PostgreSQL: Database on port 5432
Run make help to see all available commands:
make up- Start all servicesmake down- Stop all servicesmake logs- View logs from all servicesmake ps- Show running containersmake test- Test the API endpointsmake clean- Remove all containers and volumes
make downMIT