Skip to content

Commit 054f303

Browse files
RMtz88Rufino Cabrera
andauthored
Add installation guides in Markdown format for CAI Pro v0.5 and v0.6 (#312)
* Add installation guides in Markdown format for CAI Pro v0.5 and v0.6 * Add references to CAI Pro installation guides in README Install section * Add Homebrew installation step for OS X in CAI Pro v0.5 guide * Add navigation links back to README Install section in CAI Pro guides --------- Co-authored-by: Rufino Cabrera <[email protected]>
1 parent 090f990 commit 054f303

File tree

3 files changed

+287
-0
lines changed

3 files changed

+287
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,13 @@ Cybersecurity AI is a critical field, yet many groups are misguidedly pursuing i
338338

339339
## :nut_and_bolt: Install
340340

341+
> [!NOTE]
342+
> **CAI Professional Edition Users**: If you have an active CAI Pro subscription, we provide dedicated installation guides for versions 0.5 and 0.6. Official support is available for Ubuntu 24.04 (x86_64). Installation instructions for other operating systems are provided as-is without official support:
343+
> - [CAI Pro v0.6 Installation Guide](docs/Installation_Guide_for_CAI_Pro_v0.6.md)
344+
> - [CAI Pro v0.5 Installation Guide](docs/Installation_Guide_for_CAI_Pro_v0.5.md)
345+
346+
### Community Edition Installation
347+
341348
```bash
342349
pip install cai-framework
343350
```
Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
# Installation Guide for CAI Pro v0.5
2+
3+
[Back to Installation Guide](../README.md#nut_and_bolt-install)
4+
5+
## Welcome to CAI Pro!
6+
7+
If your subscription is active, you have received a confirmation email. Then, get and save your API-Key and please follow these instructions to install CAI Pro on your system.
8+
9+
### Important
10+
11+
- Your API Key is personal and non-transferable.
12+
- It will be permanently linked to the first system where it is used.
13+
14+
## System Requirements
15+
16+
- OS: Ubuntu 24.04 (x86_64, 64-bit)
17+
- Language: English
18+
- Python: 3.8+ (installed automatically)
19+
- Memory: Minimum 4 GB RAM
20+
21+
## Installation Steps
22+
23+
- Download the installer file we provided in the Confirmation to your CAI-Pro subscription: `cai-pro_Linux.deb`
24+
- Open a terminal in your Downloads directory.
25+
- Run the following commands:
26+
- `sudo apt update`
27+
- `sudo apt install ./cai-pro_Linux.deb`
28+
- During installation, follow the instructions and you will be asked to provide your API Key: `sk--xxxxxxxxxxxxxxxx`
29+
- Once completed, CAI will start automatically.
30+
31+
## Accessing CAI
32+
33+
- Desktop Icon → double-click on "CAI (by Alias Robotics)"
34+
- Application Menu → search for "CAI"
35+
- Command Line → run: `cai`
36+
37+
## Support
38+
39+
If you encounter any issues, contact us at: [email protected]
40+
41+
Although we do not provide official support for other operating systems, we offer the recommended installation steps below.
42+
43+
## Installation Steps for Other OS
44+
45+
### OS X
46+
47+
```bash
48+
# Install homebrew
49+
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
50+
51+
# Install dependencies
52+
brew update && \
53+
brew install git [email protected]
54+
55+
# Create virtual environment
56+
python3.12 -m venv cai_env
57+
58+
# Install the package from the local directory
59+
source cai_env/bin/activate && pip install cai-framework
60+
61+
# Generate a .env file and set up with defaults
62+
echo -e 'OPENAI_API_KEY="sk-1234"\nANTHROPIC_API_KEY=""\nOLLAMA=""\nPROMPT_TOOLKIT_NO_CPR=1\nCAI_STREAM=false' > .env
63+
64+
# Launch CAI
65+
cai # first launch it can take up to 30 seconds
66+
```
67+
68+
### Windows WSL
69+
70+
Go to the Microsoft page: https://learn.microsoft.com/en-us/windows/wsl/install
71+
72+
Here you will find all the instructions to install WSL. From Powershell write: `wsl --install`
73+
74+
```bash
75+
sudo apt-get update && \
76+
sudo apt-get install -y git python3-pip python3-venv
77+
78+
# Create the virtual environment
79+
python3 -m venv cai_env
80+
81+
# Install the package from the local directory
82+
source cai_env/bin/activate && pip install cai-framework
83+
84+
# Generate a .env file and set up with defaults
85+
echo -e 'OPENAI_API_KEY="sk-1234"\nANTHROPIC_API_KEY=""\nOLLAMA=""\nPROMPT_TOOLKIT_NO_CPR=1\nCAI_STREAM=false' > .env
86+
87+
# Launch CAI
88+
cai # first launch it can take up to 30 seconds
89+
```
90+
91+
### Android
92+
93+
We recommend having at least 8 GB of RAM:
94+
95+
1. First of all, install userland: https://play.google.com/store/apps/details?id=tech.ula&hl=es
96+
2. Install Kali minimal in basic options (for free). [Or any other kali option if preferred]
97+
3. Update apt keys like in this example: https://superuser.com/questions/1644520/apt-get-update-issue-in-kali, inside UserLand's Kali terminal execute:
98+
99+
```bash
100+
# Get new apt keys
101+
wget http://http.kali.org/kali/pool/main/k/kali-archive-keyring/kali-archive-keyring_2024.1_all.deb
102+
103+
# Install new apt keys
104+
sudo dpkg -i kali-archive-keyring_2024.1_all.deb && rm kali-archive-keyring_2024.1_all.deb
105+
106+
# Update APT repository
107+
sudo apt-get update
108+
109+
# CAI requires python 3.12, lets install it (CAI for kali in Android)
110+
sudo apt-get update && sudo apt-get install -y git python3-pip build-essential zlib1g-dev \
111+
libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev \
112+
wget libbz2-dev pkg-config
113+
114+
wget https://www.python.org/ftp/python/3.12.4/Python-3.12.4.tar.xz
115+
tar xf Python-3.12.4.tar.xz
116+
cd Python-3.12.4
117+
./configure --enable-optimizations
118+
sudo make altinstall # This command takes long to execute
119+
120+
# Clone CAI's source code
121+
git clone https://github.com/aliasrobotics/cai && cd cai
122+
123+
# Create virtual environment
124+
python3.12 -m venv cai_env
125+
126+
# Install the package from the local directory
127+
source cai_env/bin/activate && pip3 install -e .
128+
129+
# Generate a .env file and set up
130+
cp .env.example .env # edit here your keys/models
131+
132+
# Launch CAI
133+
cai
134+
```
135+
136+
---
137+
138+
**[⬅️ Return to Main Installation Guide](../README.md#nut_and_bolt-install)**
139+
Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
# Installation Guide for CAI Pro v0.6
2+
3+
[Back to Installation Guide](../README.md#nut_and_bolt-install)
4+
5+
## Welcome to CAI Pro!
6+
7+
If your subscription is active, you have received a confirmation email. Then, get and save your API-Key and please follow these instructions to install CAI Pro on your system.
8+
9+
### Important
10+
11+
- Your API Key is personal and non-transferable.
12+
- It will be permanently linked to the first system where it is used.
13+
14+
## System Requirements
15+
16+
- OS: Ubuntu 24.04 (x86_64, 64-bit)
17+
- Language: English
18+
- Python: 3.8+ (installed automatically)
19+
- Memory: Minimum 4 GB RAM
20+
21+
## Installation Steps
22+
23+
- Create a folder in your preferred directory.
24+
- Open a terminal in that directory.
25+
- Create a virtual environment, activate it, and install CAI Pro with the following commands:
26+
- `sudo apt update`
27+
- `python3.12 -m venv cai_env`
28+
- `source cai_env/bin/activate`
29+
- `pip install --index-url https://packages.aliasrobotics.com:664/<api-key>/ cai-framework`
30+
- Important note:
31+
- The last command requires customization. Replace `<api-key>` with the API Key provided in the confirmation email for your subscription, for example: `sk--xxxxxxxxxxxxxxxx`
32+
- Once the installation is complete, run:
33+
- `cai –tui`
34+
35+
## Accessing CAI
36+
37+
- Command Line → run: `cai –tui`
38+
39+
## Support
40+
41+
If you encounter any issues, contact us at: [email protected]
42+
43+
Although we do not provide official support for other operating systems, we offer the recommended installation steps below.
44+
45+
## Installation Steps for Other OS
46+
47+
### OS X
48+
49+
```bash
50+
# Install homebrew
51+
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
52+
53+
# Install dependencies
54+
brew update && \
55+
brew install git [email protected]
56+
57+
# Create virtual environment
58+
python3.12 -m venv cai_env
59+
60+
# Install the package from the local directory
61+
source cai_env/bin/activate && pip install cai-framework
62+
63+
# Generate a .env file and set up with defaults
64+
echo -e 'OPENAI_API_KEY="sk-1234"\nANTHROPIC_API_KEY=""\nOLLAMA=""\nPROMPT_TOOLKIT_NO_CPR=1\nCAI_STREAM=false' > .env
65+
66+
# Launch CAI
67+
cai # first launch it can take up to 30 seconds
68+
```
69+
70+
### Windows WSL
71+
72+
Go to the Microsoft page: https://learn.microsoft.com/en-us/windows/wsl/install
73+
74+
Here you will find all the instructions to install WSL. From Powershell write: `wsl --install`
75+
76+
```bash
77+
sudo apt-get update && \
78+
sudo apt-get install -y git python3-pip python3-venv
79+
80+
# Create the virtual environment
81+
python3 -m venv cai_env
82+
83+
# Install the package from the local directory
84+
source cai_env/bin/activate && pip install cai-framework
85+
86+
# Generate a .env file and set up with defaults
87+
echo -e 'OPENAI_API_KEY="sk-1234"\nANTHROPIC_API_KEY=""\nOLLAMA=""\nPROMPT_TOOLKIT_NO_CPR=1\nCAI_STREAM=false' > .env
88+
89+
# Launch CAI
90+
cai # first launch it can take up to 30 seconds
91+
```
92+
93+
### Android
94+
95+
We recommend having at least 8 GB of RAM:
96+
97+
1. First of all, install userland: https://play.google.com/store/apps/details?id=tech.ula&hl=es
98+
2. Install Kali minimal in basic options (for free). [Or any other kali option if preferred]
99+
3. Update apt keys like in this example: https://superuser.com/questions/1644520/apt-get-update-issue-in-kali, inside UserLand's Kali terminal execute:
100+
101+
```bash
102+
# Get new apt keys
103+
wget http://http.kali.org/kali/pool/main/k/kali-archive-keyring/kali-archive-keyring_2024.1_all.deb
104+
105+
# Install new apt keys
106+
sudo dpkg -i kali-archive-keyring_2024.1_all.deb && rm kali-archive-keyring_2024.1_all.deb
107+
108+
# Update APT repository
109+
sudo apt-get update
110+
111+
# CAI requires python 3.12, lets install it (CAI for kali in Android)
112+
sudo apt-get update && sudo apt-get install -y git python3-pip build-essential zlib1g-dev \
113+
libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev \
114+
wget libbz2-dev pkg-config
115+
116+
wget https://www.python.org/ftp/python/3.12.4/Python-3.12.4.tar.xz
117+
tar xf Python-3.12.4.tar.xz
118+
cd Python-3.12.4
119+
./configure --enable-optimizations
120+
sudo make altinstall # This command takes long to execute
121+
122+
# Clone CAI's source code
123+
git clone https://github.com/aliasrobotics/cai && cd cai
124+
125+
# Create virtual environment
126+
python3.12 -m venv cai_env
127+
128+
# Install the package from the local directory
129+
source cai_env/bin/activate && pip3 install -e .
130+
131+
# Generate a .env file and set up
132+
cp .env.example .env # edit here your keys/models
133+
134+
# Launch CAI
135+
cai
136+
```
137+
138+
---
139+
140+
**[⬅️ Return to Main Installation Guide](../README.md#nut_and_bolt-install)**
141+

0 commit comments

Comments
 (0)