Develop agents
Run any custom AI agent on Beamlit.
You can bring agents developed in any framework (LangChain, CrewAI, or any custom framework in Python) and deploy them on Beamlit by integrating a few lines of the Beamlit SDK and leveraging our other developer tools (the Beamlit CLI, GitHub action, etc.).
To run your agent on Beamlit, you must package it by using the Beamlit SDK so Beamlit can identify the core resources to deploy: the main agent code, the standalone tools/functions it can use, and the model APIs it can query. This is what allows Beamlit to enable its features when your agent is deployed, such as secure connections to third-party systems or private networks, smart global placement of workflows, and much more.
Overview of the development/deployment process
Beamlit’s development paradigm is designed to have a minimal footprint on your usual development process. Your custom code remains platform-agnostic: you can deploy it on Beamlit or through traditional methods like Docker containers on VMs or Kubernetes clusters. When you deploy on Beamlit (CLI command bl deploy
), Beamlit runs a specialized build process that integrates your code with its Global Inference Network features.
Here is a high-level presentation of how agents can be built and deployed using Beamlit:
- Initialize a new project by creating a local git repository. This will contain your agent’s logic, custom functions, and API connections, as well as all required dependencies. For quick setup, use Beamlit CLI command
bl create-agent-app
, which creates a pre-scaffolded local repository ready for developing and deploying your agent on Beamlit. - Develop and test your agent iteratively in a local environment.
- Develop your agent logic using an agentic framework (like LangChain) or any custom TypeScript/Python code. Write your own functions. Use Beamlit SDK wrappers and decorators on your core agent and functions to specify the resources to run on Beamlit.
- Use the Beamlit CLI command
bl serve
to serve your agent on your local machine and get an endpoint for inference requests. The execution workflow—including agent logic, functions, and model API calls—is broken down and sandboxed exactly as it would be when served on Beamlit.
- Deploy your agent in the development environment. Use the Beamlit CLI command
bl deploy --env development
to build and deploy your agent on Beamlit’s development environment. - Promote your agent to the production environment. Use the Beamlit CLI command
bl deploy --env production
to build and deploy your agent on Beamlit’s production environment.
Develop an agent on Beamlit
Check out the following guide to learn how to develop and deploy an agent using your preferred programming language on Beamlit.
TypeScript
Develop your AI agents in TypeScript using the Beamlit SDK.
Python
Develop your AI agents in Python using the Beamlit SDK.
Deploy an agent
Learn how to deploy your custom AI agents on Beamlit as a serverless endpoint.