text/gemini
# Install Sabaki 2
=> https://github.com/SabakiHQ/Sabaki/releases Download link
# Install Katago
In terminal:
```
brew install katago
```
Just to make sure this worked, type katago in terminal to ensure you see the same:
```
Usage: katago SUBCOMMAND
---Common subcommands------------------
gtp : Runs GTP engine that can be plugged into any standard Go GUI for play/analysis.
benchmark : Test speed with different numbers of search threads.
```
# Connecting Katago to Sabaki 2
1. Open Sabaki 2 -> Engines
2. Press the play icon and press `Manage Engines...`
3. Press `Add` to add our new engine
There are four input fields we need to paste information (name, path, no arguments & Initial commands) but require a little more terminal commands to find the details.
### Name
For name input anything you want, I recommend `Katago` since that's what engine we are setting up.
### Path
Run the follow command to get Katago's homebrew'd install path:
```
$ which katago
```
Which will output:
```
/usr/local/bin/katago
```
Paste this into the path field in Sabaki
### gtp (aka No arguments)
NOTE: This is probably the most difficult part of the installation, so follow closely.
The `gtp` input text follows this pattern we need two variables to replace, `A` & `B`:
```
gtp -config A -model B
```
#### Getting A
run in terminal:
```
brew list --verbose katago | grep .cfg | grep gtp
```
#### Getting B
run in terminal:
```
brew list --verbose katago | grep .gz
```
NOTE: here you may see more than one `.bin.gz` file, pick any of them.
#### Replace A & B
My working example:
```
gtp -config /usr/local/Cellar/katago/1.10.0/share/katago/configs/gtp_example.cfg -model /usr/local/Cellar/katago/1.10.0/share/katago/g170-b30c320x2-s4824661760-d1229536699.bin.gz
```
Now that we have replaced A & B with the config and model text we got from running the previous 2 terminal commands, paste the full gtp text into the third line in Sabaki
### Initial commands
Copy and past this into Sabaki's 4th line:
```
time_settings 0 5 1
```
Here's what my Sabaki looks like with all the information:
# Testing
This content has been proxied by September (ba2dc).