Back to Blog
Getting Started

Set Up Your Trading Agent
Step by Step

From cloning the repo to a live agent — every screen you'll see, explained in plain language. Safe, reliable, always at hand.

Apr 11, 2026 8 min read
🛡️
Your keys, your server
Self-custody
?
No position size errors
Auto risk calc
📱
Control from anywhere
Telegram UI
🔄
Runs 24/7 without you
Always on
1

Get Quantilan — clone the repo

Clone the trading-agent repository from GitLab

The agent lives on your own machine or VPS — Quantilan never touches your API keys or funds.

After install you must configure .env (Setup GUI or editor) before production — Telegram bot, risk, and mode-specific keys/tests. Filling nothing and only running the container is not enough.


2

Open the Setup GUI

Setup GUI overview — all sections

Run make gui (Setup GUI — not make start yet) and open http://localhost:8080 in your browser.

On a VPS: keep an SSH tunnel open from your PC — ssh -L 8080:localhost:8080 user@YOUR_VPS_IP — then open the same URL locally. The GUI binds to localhost only.

The GUI has collapsible sections — fill them top to bottom. The Readiness panel at the bottom shows which checks have passed.


3

Choose trading mode — Paper or Live

Paper vs Trade mode selection

Paper mode simulates trades using real market data — no API keys needed, zero risk. Perfect to verify everything works first.

When you're ready to trade with real funds, switch to Trade (Real Orders).


4

Select your exchange

Exchange selection dropdown

Four exchanges supported out of the box:


5

Enter API keys (Trade mode only)

API key and secret fields for live trading

Paste your exchange API Key and Secret. Keys are stored locally in your .env file — never sent to Quantilan servers.

One agent · one account · one strategy. Do not reuse this API key on a second agent. A second strategy or exchange needs its own instance and a separate trading account (subaccount / different key).


6

Test the connection

Connection test showing 33 supported coins and Connection successful

Click Test Public API — the agent checks connectivity and lists all 33 supported coins.

A green Connection successful toast confirms you're good to go. Any error here means a network or key permission issue — not a trading risk.


7

Run the order test

Order test — open, modify SL, close cycle

Required in Trade mode before going live: click Run Test to execute a full mini-cycle — open a small position, adjust the stop-loss, then close it. The live log shows each step in real time.


8

Set risk parameters

Risk Management sliders — margin, leverage, positions, SL, TP

Five sliders control your risk profile. No manual position sizing — the agent calculates everything automatically from these settings. Configure risk before production (defaults are a starting point, not a strategy).


9

Connect your Telegram bot

Telegram Bot configuration — token and chat ID

Required for every agent: your own Telegram bot for control and notifications — no third-party access to your chat.


10

Choose your signal source

Signal source — Quantilan Server or Telegram

Choose how the agent receives trade signals:


11

Choose your parser model

Parser model selection — Regex and LLM options for Telegram signal parsing

When using Telegram as your signal source, choose how the agent parses incoming messages:


12

AI Analyst / AI Helper

AI Models tab — Groq API key field and model selector

Open the AI Models tab for on-demand analysis (btc ai) or set AI Helper as the signal source for autonomous watches.


13

Enable chart notifications

Chart Notifications — candlestick chart on every trade event

On every trade event — open, close, or stop adjustment — the agent sends a candlestick chart to your Telegram showing the position: entry price, stop-loss, and take-profit levels.


14

All green — save and start

Readiness panel — Exchange connection and Telegram bot green, Start Agent button

The Readiness panel shows green checkmarks for each validated component. When required checks for your mode pass:

Your agent is running. Now control it from Telegram.

Type commands, forward signals, get charts — all from your phone. See how it works in practice.

Read the Telegram Guide