Prerequisites
- Python 3.9+
cyclspackage installed- Docker installed (for local testing)
- OpenAI API key
Note: This guide uses OpenAI, but LangChain and Cycls support many providers including Anthropic, Google Gemini, Mistral, Cohere, and more. Simply swap the pip dependency and model name.
Step 1: Create the Agent
Create a new file calledapp.py:
Step 2: Configure Environment
Create a.env file in the same directory to store your API key:
Step 3: Run the Agent
Execute your agent:Full Code
Here is the completeapp.py file:
Using Other LLM Providers
Swap the dependency and model name to use a different provider:Deploy to Cloud
To deploy to production, set your Cycls API key and callapp.deploy():