Skip to main content
strands-compose-chat

Strands Compose Chat

A ready-to-run web chat application for agents built with strands-compose.

Python 3.11+ PyPI version License

[!IMPORTANT] Community project — not affiliated with AWS or the strands-agents team. Bugs here? Open an issue. Bugs in the underlying SDK? Head to strands-agents.

Overview

Strands Compose lets you describe an agent system in a single YAML file, and Strands Compose Agentcore runs that system on AWS Bedrock AgentCore Runtime.

Strands Compose Chat is the front door: a complete web application where people sign in, open a conversation, and chat with the agents you have built. It handles everything around them - user accounts, conversations, history, access control, and usage tracking.

Focus on building agents, and this app makes them accessible to your users.


Where it fits in the ecosystem:

Layer Package Who uses it
Define the agents strands-compose Developers
Run / deploy the agents strands-compose-agentcore Developers, operations
Put the agents in front of people strands-compose-chat End users

What's included

The application comes complete — there is nothing to assemble:

Feature What it gives you
Chat interface Live, streaming replies with multi-agent systems showing their work as it happens. Conversations are saved so people can return to earlier threads.
File attachments Users can send images and documents alongside their messages, within configurable size limits.
User accounts and sign-in Built-in username/password accounts, plus optional single sign-on (SSO) through your existing identity provider — Microsoft Entra, Okta, Google, or any standards-based OAuth provider.
Access control Agents are organised by group, so each person only sees the agents they are entitled to use. Access is closed by default.
Admin panel A web console where an administrator registers agents, manages users and groups, and reviews activity.
Usage and cost tracking Every interaction records token usage, with per-model pricing, per-user budgets, and a dashboard for both administrators and individual users.

Who it's for

  • Freelancers and small teams who have built an agent and need to put it in front of clients or colleagues quickly, with a polished interface and proper sign-in.
  • Organisations that want an internal AI assistant or department-specific agents, gated behind company SSO, with usage and cost visibility for budgeting.
  • Anyone delivering an agent as a product or internal service who would rather configure a chat app than build and maintain one.

Getting started

The application is published on PyPI as strands-compose-chat and includes the web interface bundled in. Installing it gives you a command-line tool available as strands-compose-chat or its short alias scc.

pip install strands-compose-chat

A minimal local run:

scc migrate     # create the database
scc serve       # start the web server on http://127.0.0.1:8000

Two worked setups are in the examples directory:

  • 01-local-dev — run on your own machine with a local database. The fastest way to try the app.
  • 02-docker — a production-like stack (the app plus a PostgreSQL database) with Docker Compose. Recommended for production, and the basis for deploying to orchestrators such as ECS or Kubernetes.

Each example has step-by-step instructions and a configuration template.

Technical overview

The intent here is a brief map, not a deep reference — detailed documentation lives in separate documents.

Architecture.

A single deployable application made of two parts: a Python backend and a web frontend that ships bundled inside it. The backend exposes the API and serves the interface; the frontend is what users see in the browser. The backend talks to your agents only through the strands-compose SDK, so anything agent-related stays consistent with the rest of the ecosystem.

Tech stack.

Built on a modern, high-performance stack selected for streaming and multi-tenant workloads. The async backend handles concurrent SSE streams without blocking, the database layer uses async SQLAlchemy 2.0 with eager-loaded relationships and parameterised queries throughout, and the frontend delivers a responsive interface with real-time updates via an event-driven store.

Layer Technology
Backend FastAPI, async SQLAlchemy, Pydantic, Alembic, sqladmin, uvicorn
Frontend React, TypeScript, Vite
Database SQLite (local development), PostgreSQL (production)

Security.

Authentication, authorisation, and transport security are implemented to production standards with no shortcuts. Every endpoint is gated, every credential is hashed or redacted, and production mode enforces a strict baseline at startup — refusing misconfiguration rather than running with it silently.

Area Implementation
Authentication Session-cookie and Bearer API key. Constant-time, enumeration-safe.
Password storage Argon2id hashes only; raw credentials are never persisted or logged.
Authorisation Role-based FastAPI dependencies on every endpoint. Agent visibility requires explicit group membership.
OIDC / SSO Standards-based OAuth 2.0 / OpenID Connect; redirect targets validated against open-redirect.
Security headers Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options: DENY, Content-Security-Policy, X-XSS-Protection, Referrer-Policy on every response.
Transport TrustedHostMiddleware, configurable CORS_ALLOWED_ORIGINS.
Production hardening APP_ENV=prod enforces HTTPS-only cookies, rejects SQLite and wildcard CORS/host settings at startup.
Secrets handling All credentials via environment variables; sensitive fields redacted in logs, diagnostics, and config repr.

Download files

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

Source Distribution

strands_compose_chat-0.1.4.tar.gz (310.7 kB view details)

Uploaded Source

Built Distribution

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

strands_compose_chat-0.1.4-py3-none-any.whl (602.3 kB view details)

Uploaded Python 3

File details

Details for the file strands_compose_chat-0.1.4.tar.gz.

File metadata

  • Download URL: strands_compose_chat-0.1.4.tar.gz
  • Upload date:
  • Size: 310.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for strands_compose_chat-0.1.4.tar.gz
Algorithm Hash digest
SHA256 f4170d7638fe6b88f30a17b4e9c1789c1b11dbfa0fb5daacb59e703f7acc6c44
MD5 9343cdecd6ca932767fd87eb34d51556
BLAKE2b-256 84d3b1bd9d7cf86449413d2b4aa95c20c675d1a194cadbb1e90b90094f16aaaf

See more details on using hashes here.

Provenance

The following attestation bundles were made for strands_compose_chat-0.1.4.tar.gz:

Publisher: publish.yml on strands-compose/chat

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file strands_compose_chat-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for strands_compose_chat-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 edc57a5d1a90c05800e2404af1db5ed37ee501d633c66da8275cd1a7f97f2a1d
MD5 723f3a0f33bcdbde054c2d855055a3a3
BLAKE2b-256 6560a88bf632605a3e21110336e1f7d5fd8a19d8166e3abfc952d7a7df1586b0

See more details on using hashes here.

Provenance

The following attestation bundles were made for strands_compose_chat-0.1.4-py3-none-any.whl:

Publisher: publish.yml on strands-compose/chat

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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