Prerequisites: Python 3.8 or higher
1. Installation
Get started by installing Cycls using pip.2. Build Your Agent
Create a file namedagent.py
and add the following code:
3. Run Your Agent
Now let’s test your agent locally. Run the file from your terminal:http://127.0.0.1:8000
. You’ll see a ready-to-use web UI where you can interact with your agent instantly.
Next Steps
Congratulations! You’ve successfully built and tested your first agent locally. Here are suggested next steps to enhance your agent:Build an LLM Agent
Learn how to integrate OpenAI’s GPT models to create intelligent conversational agents that can understand context and provide helpful responses.
Configure Your Agent
Explore agent configuration options including dependencies, authentication, deployment settings, and custom UI themes.
Work with Context & User Data
Learn how to access conversation history, user information, and build more sophisticated agents that remember previous interactions.
Deploy to the Cloud
Push your agent to Cycls cloud to make it available worldwide with authentication, and scaling capabilities.
Troubleshooting
If you encounter issues during the setup process, check these common troubleshooting solutions:Agent won't start
Agent won't start
Make sure you have Python 3.8+ installed and all dependencies are properly installed. Check that your
agent.py
file has the correct syntax and the agent.run()
call is at the bottom of the file.Port 8000 is already in use
Port 8000 is already in use
The default port 8000 might be occupied. You can specify a different port by modifying the
agent.run()
call or stopping other services using that port.Import errors
Import errors
Ensure you’ve installed Cycls with
pip install cycls
. If you’re using additional dependencies, make sure they’re installed in your Python environment.Browser can't connect
Browser can't connect
Verify the server is running and check the URL in your browser. Make sure you’re using
http://127.0.0.1:8000
and that no firewall is blocking the connection.