
You want Claude Code working right on your KryllOS server: reading your strategies, running backtests, digging through engine logs, telling you why your bot didn’t buy anything last night. For that, it needs a way in. This guide covers both ways to connect it, tested end to end on a real KryllOS VPS.
- Method 1: install Claude Code on your VPS from the KryllOS Terminal. One line to paste.
- Method 2: hand your KryllOS profile to Claude, which connects to your VPS from your computer using the same SSH key as the app.
Not sure which one to pick? Compare the two methods →
And once it’s in, Claude doesn’t land on your server blind. KryllOS ships with the kryllos-strategy-builder skill, which teaches it how the editor and the engine work. More on that below.
What you need
- KryllOS running on a VPS. Not there yet? Start with the KryllOS installation guide.
- A Claude account on a Pro, Max, Team, or Enterprise plan, or a Claude Console account billed by API usage.
- For method 1: nothing else. It all happens inside KryllOS.
- For method 2: the KryllOS app on your computer to export the profile, and the Claude app (or Claude Code) on that same computer.
Which method should you pick?
Both get you to the same place: your server. The difference is where Claude runs. Pick one now, then skip straight to its section.
| Method 1: KryllOS Terminal | Method 2: KryllOS profile | |
|---|---|---|
| Where Claude runs | On your VPS | On your computer |
| What you provide | One line to paste, then your Claude sign-in | The profile archive and its password |
| Installed on the VPS | Claude Code, in ~/.local/bin |
Nothing |
| Claude’s access | The kryll user’s shell, KryllOS API on localhost |
Full SSH shell, KryllOS API through a tunnel |
| Best for | Working directly on the server, from any computer with KryllOS installed | Working from the Claude app, alongside your files and other tools |
Nothing stops you from using both. Draft a strategy in the Claude app in the evening, then have Claude watch the engine logs from the Terminal the next day.
Method 1: install Claude Code in the KryllOS Terminal →
Method 2: give your KryllOS profile to Claude →
Method 1: install Claude Code in the KryllOS Terminal
Here, Claude runs directly on your VPS. No key to handle, no archive to export: KryllOS already holds the secure connection to your server, and its Terminal gives you a real shell on it.
Step 1: open the Terminal
Click the K in the bottom-left corner to open the app menu. The Terminal is under Tools.

The Terminal opens on your VPS as the kryll user, in your KryllOS folder (~/kryllhb/kfs).
Step 2: paste the install command
Copy this line, paste it into the Terminal, and press Enter:
curl -fsSL https://claude.ai/install.sh | bash && source ~/.profile && claudeIt does three things. It installs Claude Code with Anthropic’s official installer. source ~/.profile makes the claude command available right away, without reopening the terminal. Then claude starts it.

Step 3: let the install finish
It takes under twenty seconds. The terminal shows the installed version and where the program lives, ~/.local/bin/claude. Then Claude starts on its own.

Step 4: pick a theme
First screen: appearance. Dark mode is preselected and fits the KryllOS Terminal well. Press Enter.

Step 5: choose how to sign in
Keep the first option, Claude account with subscription, if you’re on Pro, Max, Team, or Enterprise. Pick the second, Anthropic Console account, if you’d rather pay per API usage. Press Enter.

Step 6: open the sign-in link
Claude shows a long link starting with https://claude.com/cai/oauth/authorize. Click it: your browser opens on the Claude sign-in page.
Sign in to your Claude account and click Authorize. The page shows a code: copy it, go back to the Terminal, paste it after Paste code here if prompted >, and press Enter.

Step 7: read the security notes
Claude reminds you it can make mistakes and that you should review what it does, especially when it runs code. Press Enter to continue.

Step 8: trust your KryllOS folder
Claude asks whether it can work in /home/kryll/kryllhb/kfs. Careful: the preselected option is No, exit. Press Enter right away and Claude quits. Move down one line with the arrow key to Yes, I trust this folder, then press Enter.

Step 9: ask your first question
You’re set. For our test, we asked how an OR block works in the editor. Before answering, Claude loaded the kryllos-strategy-builder skill. Fifteen seconds later we had the exact rule (the first true child wins, in priority order) and an example with a stop, a target, and a 24-hour exit.

By default, Claude Code starts in auto mode: it decides which actions are low-risk, runs those, and blocks the rest. On a server trading real money, keep control. Shift+Tab cycles through the modes, and manual mode asks for your approval before every action.
To quit, type /exit, then close the window with the red button. Next time, open the Terminal and just type claude.
Method 2: give your KryllOS profile to Claude
Your profile is what lets the KryllOS app reach your server. Hand it to Claude and it gets the exact same access as the app: it connects to the VPS from your computer, with nothing installed on the server.
Step 1: export your profile
In the KryllOS app, open Options (the gear icon, top right), then Profiles, then Export. The app exports the active profile, and only if your server responds.
You get an archive named like kryllos-profile-default-YYYYMMDD.zip, protected by a password. Inside:
manifest.json: your VPS address, the user, the SSH port, and the port-knocking sequence;keys/: your server’s private SSH key and its public key;README.txt: a short how-to.
Step 2: give the archive to Claude
Claude needs to run commands on your computer. Two options: the Claude desktop app with access to the folder holding the archive, or Claude Code in your terminal. Then just ask:
I exported my KryllOS profile to Downloads. The archive password is “…”. Connect to my VPS and tell me whether KryllOS is running properly.
Step 3: let Claude connect
On Claude’s side, it takes four moves:
- It unzips the archive with your password into a folder of its own and locks down the key (
chmod 600). - It “knocks” on the three port-knocking ports, in order. Skip that and your SSH port stays invisible: we tried, and the connection timed out.
- It connects over SSH as the
krylluser, on your profile’s SSH port. - To work on strategies, it opens a tunnel to the KryllOS API. That API is never exposed to the internet; it’s only reachable over SSH. If the KryllOS app is open on the same computer, Claude can even use the connection the app already has.
A word on security, since this is your money. The archive holds a key that opens a full shell on your server. Pick a real password when you export, with letters, numbers, and some length. Don’t leave it sitting in an unencrypted cloud folder or a chat app. And if it ever leaks, export a new profile to rotate the key.
Claude already knows KryllOS: the kryllos-strategy-builder skill
An AI agent loose on a server that trades can sound scary. Except Claude isn’t walking in blind. KryllOS ships with the kryllos-strategy-builder skill: as soon as Claude is connected, it has it, with nothing to install.
A skill is a folder of instructions Claude loads when your request calls for it. This one teaches it how a strategy moves from block to block, why an OR tests its children in order, why an order should be market, and the traps in each of the 36 block types. Every rule points to the KryllOS source file that implements it, so Claude checks instead of guessing.
In practice, when you describe an idea, Claude asks a few questions, designs the strategy, generates the .kryll file, and runs it through the validator. Then it backtests it in your KryllOS’s real engine, reads the trades and the logs, fixes what breaks, and hands it over ready to open in the editor. A few requests to start with:
- “Build a BTC/USDT strategy: buy when the 4h RSI drops below 30, stop at -5%, target at +10%. Backtest it over the last six months.”
- “My ETH DCA strategy hasn’t taken a trade in a week. Find out why.”
- “Explain the difference between an OR and an AND in the editor.”
- “Convert my old Kryll.io file into a KryllOS strategy.”
Questions or stuck?
Drop by the Kryll community Telegram group. Share a screenshot of your terminal, with your server address hidden. Join the Telegram →
FAQ
The terminal says “claude: command not found”
The claude command is there, but this terminal doesn’t know where to find it yet. Type source ~/.profile, or close the Terminal and open it again. The line from step 2 handles this for you.
Claude can’t connect with my profile
An SSH timeout almost always comes from port knocking: the sequence was missed, or the connection started more than 30 seconds after it. Claude knocks again and retries once. If it still fails, check in the KryllOS app that your server is up. A “Permission denied” means the archive doesn’t match this server: export your profile again.
Do I need a paid plan?
For Claude Code, yes: Pro, Max, Team, or Enterprise, or a Claude Console account billed by usage.
Can Claude start a strategy live?
Technically, yes: in the shell, Claude has the same rights as your kryll user. The kryllos-strategy-builder skill doesn’t cover it for now; it stops at the backtest and leaves the button to you. Depending on the model and the harness (the tool running the model, Claude Code here), the agent may also refuse to start real trading for safety reasons, or ask you to confirm. That’s why we recommend manual mode (Shift+Tab) on a server trading real funds.
Can Claude see my exchange keys?
The skill never asks for them. You enter your keys in KryllOS’s Settings and they stay there. Don’t paste them into a conversation with Claude.
Can I use both methods at once?
Yes. They don’t get in each other’s way: one runs on the server, the other goes through SSH from your computer.
Your turn
Open the Terminal, type claude, and describe the strategy you’ve been putting off for weeks. It’ll ask the right questions before placing a single block.
Prefer another agent? The same walkthrough exists for OpenAI Codex, OpenCode, and Pi. To see what an AI agent changes about trading with KryllOS, read our guide to AI agents on KryllOS.
