Skip to main content
In this quickstart, you’ll create a simple Agent, run it locally, and then build and deploy a powerful AI agent to the cloud.
Prerequisites:
  • Python 3.9 or higher (3.10+ recommended for deployment)
  • Docker (Required for local runtime) - Install Docker

Step 1: Install Cycls

Install Cycls SDK:

Step 2: Create a Simple Agent

Create a file named app.py with the following code. This creates a simple agent that replies with a static message.
app.py

Step 3: Run your Agent

Make sure Docker Desktop is running before starting your agent.
Run the file from your terminal:
This will start a local development server with hot-reload. Open http://localhost:8080 to see your agent in action.
Success! You’ve created and run your first Agent locally.

Next: Cloud Deployment (OpenAI Agent)

Now let’s build a simple AI agent powered by OpenAI LLMs and deploy it to the cloud.
1

Get Your Keys

  1. Get your Cycls API Key.
  2. Get your OpenAI API Key.
  3. Create a .env file in your project root:
.env
You can use any model of your choice, such as OpenAI, Anthropic, or Gemini, etc.
2

Write the Agent

Update app.py with this complete code:
app.py
Pro Tip: Notice how we import openai inside the function? This ensures the package is loaded only when needed inside the container. Cycls automatically loads your .env file—no extra packages needed.
3

Deploy

Run the script to deploy:
You will see the deployment logs and your public URL:

Next Steps

Configure Your Agent

Explore configuration options like dependencies, secrets, and custom UI.

Work with Context

Learn how to use context to store user data and conversation history.

Customize UI

Tailor the chat interface to match your brand.