Skip to content
/ ahab Public

From harpooner to Docker builder, Captain Ahab is your guy

License

Notifications You must be signed in to change notification settings

jumploops/ahab

Repository files navigation

⚠️ RUNNING THIS PROJECT IS DANGEROUS. USE WITH CAUTION ⚠️

alt text

Captain Ahab

An AI Agent that helps you build, deploy, and run Docker containers.

⚠️ Captain Ahab runs commands on your local machine! We are not responsible for any damage incurred. ⚠️



Quickstart Setup

Prerequisites

  • MacOS or Linux
  • Docker

1. Clone repo

git clone https://github.com/jumploops/ahab.git
cd ahab 

2. Set your OpenAI API key

export OPENAI_API_KEY="sk_..."

3. Install dependencies

npm install

4. Run

npm run dev

5. Navigate to http://localhost:3006.

Overview

This project was personal experiment in using the new Assistants API from OpenAI. It enables you to create and run Docker containers on your local machine using natural language.

Main Components

  • app/components/chat.tsx - handles chat rendering, streaming, and function call forwarding
  • app/components/terminal.tsx - handles displaying and interacting with the local machine's terminal

Endpoints

  • api/assistants - POST: create assistant (only used at startup)
  • api/assistants/threads - POST: create new thread
  • api/assistants/threads/[threadId]/messages - POST: send message to assistant
  • api/assistants/threads/[threadId]/actions - POST: inform assistant of the result of a function it decided to call

Thanks

Built at the AGI House for the Agent Hackathon on 5/4/23.

This repo was based off the official OpenAI Assistants API Quickstart.

About

From harpooner to Docker builder, Captain Ahab is your guy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published