neptune1212/cai

By neptune1212

Updated about 18 hours ago

A lightweight, ergonomic framework for building bug bounty-ready Cybersecurity AIs (CAIs).

Image
Security
Machine learning & AI
1

4.9K

neptune1212/cai repository overview

Quick Start Guide for Cybersecurity AI (CAI) with Docker

This guide provides instructions for running the Cybersecurity AI (CAI) application using Docker with a local Ollama server.

Prerequisites

  • Docker installed on your machine

Quick Start

Using the Standard Docker Image

To quickly start using CAI with a local Ollama server, run the following command:

docker run --network host -e OLLAMA="127.0.0.1" -e OPENAI_API_KEY="sk-1234" -it --rm --name cai neptune1212/cai

This command will:

  • Run the Docker container with host networking
  • Set the OLLAMA_API_BASE environment variable to point to your local Ollama server
  • Start the container in interactive mode with a pseudo-TTY
  • Automatically remove the container when it exits
  • Name the container cai
Activating and Running CAI

Once inside the Docker container, activate the CAI environment and run the application:

source /cai/bin/activate && cai

Additional Information

For more detailed information about CAI, including configuration options, advanced usage, and troubleshooting, please refer to the official GitHub repository:

Cybersecurity AI (CAI) on GitHub

Environment Variables

You can customize the behavior of CAI by setting various environment variables. Here are some commonly used ones:

  • OLLAMA_API_BASE: The base URL for your Ollama server.
  • OPENAI_API_KEY: Your OpenAI API key.
  • ANTHROPIC_API_KEY: Your Anthropic API key.

Example:

docker run --network host -e OLLAMA_API_BASE="http://localhost:11434/v1" -e OPENAI_API_KEY="your_openai_api_key" -e ANTHROPIC_API_KEY="your_anthropic_api_key" -it --rm --name cai neptune1212/cai

Tag summary

Content type

Image

Digest

sha256:0686cafdd

Size

690.3 MB

Last updated

about 18 hours ago

docker pull neptune1212/cai:arm64