A command-line interface for deploying and managing AI agents on AWS Lambda using the Endercom framework.
pip install endercom-cliBefore you begin, ensure you have:
- An AWS Account: You'll need credentials to deploy resources.
- AWS CLI Configured: Run
aws loginto set your credentials and default region.brew install awscli aws login
- AWS SAM CLI: Required for building and deploying the serverless stack.
brew install aws-sam-cli
Create a new agent project structure.
endercom init <agent-name>This scaffolds a directory with:
agent.py: Your agent logic (where you write code)app.py: Server entry point and wrappertemplate.yaml: AWS SAM infrastructure definitionrequirements.txt: Python dependencies.endercom/agent.yaml: CLI configuration
If your agent needs API keys (e.g., OPENAI_API_KEY), add them to the secrets manager.
cd <agent-name>
endercom secrets set OPENAI_API_KEY "sk-..."Build and deploy your agent to AWS.
endercom deployThe CLI will:
- Check your code for undeclared environment variables.
- Sync your configuration to the SAM template.
- Build the agent using
sam build. - Deploy using
sam deploy.
| Command | Description |
|---|---|
init <name> |
Create a new agent project. |
deploy |
Build and deploy the agent stack to AWS. |
configure |
Update project configuration. |
secrets set <key> <val> |
Securely store secrets in AWS Secrets Manager. |
logs |
Tail real-time logs from your Lambda function. |
destroy |
Tear down the AWS stack and remove associated secrets. |
The source of truth for your agent's configuration is .endercom/agent.yaml.
name: my-agent
runtime: python3.12
region: us-east-1
memory: 1024
timeout: 30
env:
MY_PUBLIC_VAR: "production"
secrets:
- OPENAI_API_KEY- env: Standard environment variables injected at deployment.
- secrets: List of keys to resolve securely from AWS Secrets Manager.