Skip to content

Make AI work like crypto mining, or maybe shared hosting

License

Notifications You must be signed in to change notification settings

d3cline/airanch

Repository files navigation

GitHub stars GitHub forks GitHub issues Django License Opalstack API

Logo

AI Ranch

A Django example project for authenticating many users to many AI endpoints. Complete with UI. Built with: Django REST Framework, DaisyUI, Tailwind.css, Alpine.js, and Opalstack. All the fixin's to bootstrap your next AI startup.

output.mp4

Key Features

  • Paywall Ollama.ai and other AI workloads: Only authenticated owners may access hardware. Sell the llama.
  • Template Engine: Manage many UI templates and hardware nodes. Skin the llama.
  • Secure SSH Tunneling for AI Workloads: SSH tunneling for secure, efficient access to resources. Secure the llama.
  • Integration with Traditional Web Hosting: Seamlessly integrates with Opalstack. Syndicate the llama.
  • Full-Scale Support for AI Development: Support for AI Ranch participants. Support the llama.

How it Works

  1. Signup for an Opalstack account. (14 day free trial)
  2. Install AI Ranch as a Django app.
  3. Issue an API key.
  4. Manage home lab routing objects with AI Ranch.

Requirements

Installation

  1. Install a 'Django' app using the Opalstack Dashboard.
  2. Clone the repo
  3. Setup the virtualenv, pip install requirements
  4. modify the start/stop scripts to use the correct paths
  5. Set the following env vars in the start script
export OPALSTACK_API_KEY='APITOKEN123'
export NODE_BASE_DOMAIN_NAME='example.com'