Agents & integrations

SSH servers and FTP

Let the agent run commands on your servers over SSH and manage files over FTP, including deleting them, without ever seeing the keys or passwords.

Horus has two infrastructure integrations:

  • SSH servers: the agent connects to one of your servers to run commands, such as reading logs, checking the disk or the state of containers.
  • FTP: the agent lists, reads, writes and deletes files on a project's FTP server.

In both, Horus makes the connection and the model never sees the password.

SSH servers#

Add a server#

  1. Open Definições › Servidores SSH (Settings › SSH servers), in the Infraestrutura (Infrastructure) group.
  2. On the Servidores (Servers) card, press Adicionar (Add).
  3. Fill in the Novo servidor (new server) form:
    • Nome (name): how the server appears in the app and to the agent.
    • Endereço (address): IP or domain, for example servidor.exemplo.com.
    • Porta (port): usually 22.
    • Utilizador (user): for example utilizador.
    • Autenticação (authentication): Chave SSH do Horus (Horus SSH key: recommended, selected by default), Chave do Mac (ssh-agent) (your Mac's key, via the ssh-agent) or Palavra-passe (password, less secure).
  4. With the Chave SSH do Horus, press Gerar chave (Generate key) and put the public key on the server (see Horus SSH key, below).
  5. Press Guardar (Save). Horus tests the connection with read-only commands (uname and uptime).

Each server in the list has Testar (Test), edit and remove. After a test, the server's name shows Ligação OK (Connection OK) or Erro (Error), which only reflect the last test. A failed test stays visible until you try again. Servers still using a password are flagged as less secure. Removing a server takes access away from every project and deletes the saved key and password from the Mac; the public key stays on the server until you remove it from ~/.ssh/authorized_keys.

Horus SSH key#

This is the recommended way to connect. Horus generates a dedicated key for each server (ed25519) instead of using a password that can be guessed or reused.

  • Copiar (Copy): copies the public key, so you can add it to the server's ~/.ssh/authorized_keys by hand.
  • Instalar (Install): you type the server password once and Horus adds the public key there, without duplicating it, and checks straight away that key login works. That password is not stored.
  • Gerar nova (Generate new): replaces the key; the new one has to be installed on the server again.

To move a password server to a key: edit it, choose Chave SSH do Horus, press Gerar chave and Instalar (it can use the saved password) and save. Saving deletes the password from the Mac. Whoever runs the server can then turn off password login.

Authorise the server in a project#

A new server is not available anywhere until you authorise it:

  1. Open Definições do projeto › Servidores (Project settings › Servers).
  2. On the Acesso por SSH (SSH access) card, turn on the server's Autorizar (Authorise) toggle.

By default no server is authorised. A server the project has not authorised is not even mentioned to the agent.

What the agent can do#

In a project conversation, the agent can:

  • List the authorised servers (name, user, address and port, without credentials).
  • Run a command on one of them. Commands get 60 seconds by default (300 at most), and very long output is cut.

For example:

text
Check how much free disk space the production server has and the latest nginx errors.

Approvals#

  • Every command shows up on a card with the server and the command.
  • In Supervisionado (supervised) and Auto-aceitar edits (auto-accept edits), the card asks for approval. In Acesso total (full access), it runs without asking.
  • In a conversation with content from Share channels, the level stays the same. In a regular conversation in Acesso total (full access), commands can run without a card; at the other levels, each command asks for approval, one at a time, without Permitir nesta sessão (allow for this session).
  • In HorusAI tasks, commands always ask for approval, even in Acesso total (full access), and automatic turns have no Permitir nesta sessão (allow for this session).

Server keys#

On the first connection, Horus accepts and stores the server's key. If the key changes later, the connection is refused with a warning that the server key changed. Check the change with whoever runs the server before you carry on.

FTP#

Set up a project's FTP#

  1. Open Definições do projeto › FTP (Project settings › FTP). The state shows as Por configurar (not set up) or Configurado (set up).
  2. On the Ligação (Connection) card, fill in:
    • Servidor (server): for example ftp.exemplo.com.
    • Porta (port): usually 21.
    • Utilizador (user) and Palavra-passe (password).
    • Pasta remota (remote folder): the server folder that matches the project root.
    • FTPS: turn it on when the server accepts explicit TLS. The connection always uses passive mode, which is not configurable.
  3. Press Testar (Test) on the Testar ligação (test connection) row.
  4. Press Guardar ligação (save connection).

The FTP tab of the right panel shows the same connection and the Operações recentes (recent operations).

Pasting credentials into the conversation#

If you paste FTP details into a message, Horus recognises them, does not send the message and shows the Credenciais FTP detectadas (FTP credentials detected) card:

  • Configurar e testar (set up and test) saves the connection to the project and tests it. If the project already has FTP, the button becomes Substituir e testar (replace and test).
  • Ignorar (Ignore) sends the message as it was.

When the pasted text does not say whether it is FTP or FTPS, Horus tries FTPS.

What the agent can do#

  • List folders and read files (up to 256 KB per file).
  • Write text files.
  • Delete one file or one empty folder at a time, never folders with content.

Every path stays inside the Pasta remota (remote folder). There is no publish button: you upload by asking the agent, file by file.

Approvals#

  • Listing and reading follow the conversation's permission level.
  • Writing and deleting always ask for approval on the card, even in Acesso total (full access).
  • In a conversation with content from Share channels, and in automatic HorusAI tasks, there is no Permitir nesta sessão (allow for this session).
  • An upload requested outside the main window (in a floating conversation or on the phone) is refused, with a prompt to open the conversation in Horus.

Claude and Codex#

IntegrationClaude CodeCodex
SSH serversYesNo
FTPYesYes

Limitations#

  • No SFTP: FTP works over plain FTP or FTPS (explicit TLS).
  • FTP always uses passive mode.
  • FTP only writes text files. It deletes one file or one empty folder at a time, never folders with content nor the root folder.
  • Every FTP deletion asks for your approval, even in Acesso total (Full access) and in HorusAI tasks.
  • SSH servers run commands but do not transfer files.
  • SSH servers are only available in conversations with Claude.

Next steps#