@cycls.app() decorator is your main interface for configuring dependencies, authentication, and deployment settings. Write a function, decorate it, and Cycls handles the rest.
Here is a full example of an agent configuration:
Deployment Modes
Local Development (app.local())
Running app.local() builds a portable Docker image containing your agent and all dependencies. The image includes a pre-configured FastAPI server that serves the REST API and the web interface.
Requirement: You must have Docker installed and running.
- Result: A locally running Docker container serving your agent.
- Hot Reload: By default, the server watches for file changes and restarts automatically.
- Portability: You can take this image and deploy it to any cloud provider or on-premise server.
- URL:
http://localhost:8080
Development Options
Cloud Deployment (app.deploy())
Running app.deploy() auto-builds your agent and deploys it to Cycls’ serverless infrastructure in a single command.
- Result: A live, auto-scaling API and web interface.
- Features: Managed SSL, built-in auth, global CDN.
- URL:
https://<app-name>.cycls.ai
Configuration Reference
@cycls.app() Decorator
The decorator transforms your function into a deployable agent with all configuration in one place.
app.local()
app.deploy()
Deploys your agent to the Cycls cloud. Requires cycls.api_key to be set.
Next Steps
Manage Context
Learn how to use context to access conversation history.