> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cycls.com/llms.txt
> Use this file to discover all available pages before exploring further.

# What is cycls?

> Cycls is an open-source SDK and Cloud platform for AI distribution.

Cycls provides the complete infrastructure to build, run, and ship your agents:

* **Open-source SDK** that manages dependencies, context, and UI directly in Python, auto-compiling everything into a portable Docker container. Zero Dockerfiles, YAML, or config required.
* **Agent Runtime** that wraps your code in a pre-built FastAPI app. Includes a secure REST API, web interface, and OpenAI-compatible endpoint out of the box.
* **Serverless Cloud** to build and deploy your agents instantly. Just call `app.deploy()` and we handle the remote build, serverless hosting, and auto-scaling, giving you a live public link (e.g., `agent.cycls.ai`) with built-in authentication and monetization.

## Example

Here is an example of an Agent that defines its own environment, connects to OpenAI, and serves a secure chat interface—all in one file.

```python theme={null}
import cycls

# Define your app with dependencies declared in the decorator
@cycls.app(pip=["openai"])
async def app(context):
    from openai import AsyncOpenAI

    client = AsyncOpenAI()
    response = await client.chat.completions.create(
        model="gpt-4o-mini",
        messages=context.messages,
        stream=True
    )
    async for chunk in response:
        content = chunk.choices[0].delta.content
        if content:
            yield content

# Run locally for development
app.local()
```

Here is how the agent looks in action:

<video autoPlay muted loop playsInline className="w-full aspect-video" src="https://mintcdn.com/cycls/wIEcbOXtHHM9MyJs/img/example.mp4?fit=max&auto=format&n=wIEcbOXtHHM9MyJs&q=85&s=bbf824d9f4d8534eae118f43b302b894" data-path="img/example.mp4" />

## The AI Distribution Layer

Building agents is easy; distributing them is hard. Cycls handles the four pillars of distribution so you can focus on your code:

1. **Instant Interfaces:** Cycls auto-generates responsive web UIs with native UI components (thinking bubbles, code blocks, tables, callouts, images) that stream progressively.
2. **Zero-Config Auth:** Enterprise-grade user management is enabled by default. Secure login, session management, and user gating are built-in.
3. **Serverless Hosting:** From `localhost` to a global URL in one command. We handle the scaling, the SSL, and the server management.
4. **Native Monetization:** Monetize your agent with Cycls Pass subscription integration.

<Note>
  **Cycls is Framework Agnostic:** It works seamlessly with [LangChain](https://www.langchain.com/), [CrewAI](https://www.crewai.com/), [Agno](https://agno.com/), [OpenAI](https://openai.com/), [Anthropic](https://www.anthropic.com/), [Groq](https://groq.com/), and any other Python library.
</Note>

## Start Building

Ready to build your first agent? Check out our [Quickstart](/get-started/quickstart) guide to create your first AI agent in under 5 minutes.
