Skip to main content
Write the agent, the container it runs in, the interface it serves and the storage it keeps, in one Python file. Then ship it.
hello.py
That deploy produces a chat interface, sign-in, per-user file storage, chat history, share links, an OpenAI-compatible API endpoint and a sandboxed tool loop. There is no Dockerfile, no YAML and no separate infrastructure repository.
A Cycls agent streaming a markdown table and a Python code block in the chat interface

Every agent ships with this interface. Text, tables, code, files and tool steps stream as the model produces them.

The four layers

Each primitive is an immutable builder, so every method returns a new object and one base configuration can be branched without side effects.

Three decorators

Decorators accept exactly the primitives they need. Each one extends the layer below it, so anything a function can do, an app can do, and anything an app can do, an agent can do.

Function

Run Python in a container locally, in the cloud, or on a schedule. Freeze it as a named endpoint anyone with your key can call.

App

Return a FastAPI application and get a URL, sign-in and per-user storage.

Agent

A chat product with a managed model loop, tools, memory, files and a web interface.

What an agent includes

Interface

Streaming chat in light and dark, English and Arabic, a file canvas, voice input, share links and generated social previews.

Managed loop

Tool calling, retries, context compaction, cost accounting, and background runs that survive a dropped connection.

Tools

Sandboxed bash, file editing, web search, a real browser, a key-value store, a canvas, app building, and your own Python handlers.

State

Per-user files and chats on a volume you own, team workspaces, trash and restore, and shareable conversations.

Identity

Clerk out of the box or any OIDC provider. Organizations, roles, plans and feature flags arrive as context.user.

Connectors

OAuth and API-key grants a user makes once, with per-tool approvals, an audit trail, and remote MCP servers on any provider.

Model support

One builder covers Anthropic natively and every OpenAI-compatible endpoint through a base URL.
Reasoning control, tool calls and streaming are unified across providers. See Models.

Start here

Quickstart

Install, run locally, deploy. About five minutes.

Core concepts

Layers, builders, and the difference between run, remote and deploy.

Build your first agent

A guided build with tools, branding and a quota check.

CLI reference

Every command, flag and default.