Quickstart
Follow these steps to quickly see Mantis in action:
Installing Mantis
brew tap pranil-augur/mantis
brew install pranil-augur/mantis/mantis
Codegen configuration
Setup your codegen configuration in ~/.mantis/config.cue
Currently, only OpenAI is supported.
backends: {
openai: {
type: "openai"
api_key: "<OPENAI_API_KEY>"
default_model: "gpt-4o"
url: "https://api.openai.com/v1"
}
}
Setting up AWS credentials
If you haven't already set up your AWS credentials, follow these steps:
-
Create an AWS account if you don't have one.
-
Create an IAM user with programmatic access and appropriate permissions.
-
Obtain the AWS Access Key ID and Secret Access Key for the IAM user.
-
Configure your AWS credentials locally by running:
aws configure
Follow the prompts to enter your AWS Access Key ID, Secret Access Key, default region, and output format.
Setting up local K8s cluster
You'll need a Kubernetes cluster to deploy the Flask app. Easiest way to set one locally is using Kind
-
Install Kind:
brew install kind
-
Create a Kind cluster:
kind create cluster
-
Verify the cluster is running:
kubectl cluster-info --context kind-kind
This will set up a local Kubernetes cluster that you can use for testing and development with Mantis.
For more detailed information on Kind, visit the Kind Quick Start Guide.