Skip to main content

Quickstart

Follow these steps to quickly see Mantis in action:

  1. Set up AWS credentials
  2. Set up local K8s cluster
  3. Install Mantis
  4. Run your first Mantis project

Installing Mantis

brew tap pranil-augur/homebrew-mantis
brew install pranil-augur/homebrew-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:

  1. Create an AWS account if you don't have one.

  2. Create an IAM user with programmatic access and appropriate permissions.

  3. Obtain the AWS Access Key ID and Secret Access Key for the IAM user.

  4. 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

  1. Install Kind:

    brew install kind
  2. Create a Kind cluster:

    kind create cluster
  3. 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.