Install the Magma CLI
Our command line interface is the easiest way to create and deploy your agents. You only need to run this once.magma
command.
Authentication
Next we need to log in to Magma. Don’t worry, creating an account is absolutely free!Create your first agent
You can quickly create a new agent using theinit
command. This command will set up a template agent with basic starter code.
Run your agent locally
Once you’ve initialized your agent, you can run it locally using therun
command. This will open an interactive chat session in your terminal.
Look at the
.env
file in your project, and ensure you set the api key for the provider you are using.quit
to stop the chat.
Deploy your agent
Once you’ve tested your agent locally and want to deploy it to production, you can use thedeploy
command:
When you are comfortable with the process of using the CLI, explore the Magma Basics to learn more about the different features and capabilities of Magma. Also check out the Development Guide to learn how to develop and test more advanced features of your agents locally.