Skip to content

gopher-lab/gopher-desktop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gopher Desktop

AI-powered backtesting and strategy evolution for cryptocurrency trading.

Installation

macOS

  1. Download the latest DMG from Releases
  2. Open gopher-desktop-X.X.X.dmg
  3. Drag Gopher Desktop to your Applications folder
  4. First launch: Right-click the app and select "Open" (required for unsigned apps)

Note: Since this is an alpha release, macOS will show a security warning. Click "Open" to proceed.


Getting Started

Step 1: Launch the App

Open Gopher Desktop from your Applications folder. You'll see the main dashboard.

Main Dashboard

Step 2: Open Settings

Click the Settings icon (gear) in the bottom-left of the sidebar to configure the app.


Settings Configuration

General Settings

Configure your API keys and database connection.

General Settings

API Keys

Gopher Desktop uses AI models to generate and evolve trading strategies. You'll need at least one API key:

Provider Description Get API Key
OpenRouter Access to 100+ models (recommended) openrouter.ai/keys
OpenAI GPT-4, GPT-4o models platform.openai.com/api-keys

🚀 Coming Soon: Gopher will host its own optimized models with purchasable credits - no external API keys required. Stay tuned for future releases!

  1. Enter your API key in the appropriate field
  2. Click Test to verify the connection
  3. A green checkmark indicates success

Database URL

The app comes with a pre-configured cloud database - no setup required. The connection is already configured for you.

If you need to use your own TimescaleDB instance, enter the connection string:

postgres://username:password@host:port/database

Click Test Connection to verify database access.


Models Settings

Select which AI models to use for different tasks.

Models Settings

Loop Model

The primary model for strategy generation and evolution loops. Recommended:

  • qwen/qwen3-max (via OpenRouter)
  • gpt-4o (via OpenAI)

Backtest Model

A faster model for running backtests. Can be smaller/cheaper:

  • qwen/qwen3-vl-8b-instruct (via OpenRouter)
  • gpt-4o-mini (via OpenAI)

Adding Custom Models

Click + Add Custom to configure additional models:

Field Description
Model ID The model identifier (e.g., anthropic/claude-3-opus)
Display Name Friendly name shown in dropdowns
Provider OpenRouter, OpenAI, Ollama, or Custom
Base URL API endpoint (auto-filled for known providers)

Trading Settings

Configure your trading parameters and strategy preferences.

Trading Settings

Asset

Select the cryptocurrency pair to trade (e.g., BTC, ETH, SOL).

Minimum Coverage

The minimum percentage of historical data required for backtesting (default: 65%).

Intervals

Select which timeframes to analyze (any combination of):

1m · 5m · 15m · 30m · 1h · 4h · 8h · 1d · 1w

See Historical Data Coverage for available data per timeframe.

Strategy Prompt

Custom instructions for the AI when generating strategies. Leave empty for default behavior.


Advanced Settings

Fine-tune the evolution algorithm parameters.

Advanced Settings

Max Iterations

Maximum number of evolution iterations per run (default: 50).

Tool Iterations

Maximum tool calls per iteration (default: 10).


Cloud Database (Pre-Configured)

Gopher Desktop comes with a pre-configured cloud database containing historical candle data for 200+ Hyperliquid perpetual futures assets. No database setup required - just add your OpenRouter API key and start backtesting.

Database Features:

  • 200+ assets from Hyperliquid exchange
  • Multiple timeframes: 1m, 5m, 15m, 30m, 1h, 4h, 8h, 1d, 1w
  • Up to 394 days of historical data for major assets
  • Continuously updated with latest market data

📊 View Full Data Coverage by Symbol


Historical Data Coverage

The cloud database contains historical candlestick data across multiple timeframes for backtesting.

Raw Data Coverage

Interval Oldest Data Newest Data Total Days
1d 2024-12-18 2026-01-16 394 days
1h 2025-09-19 19:00 2026-01-16 20:00 119 days
1m 2025-12-15 03:10 2026-01-16 20:17 33 days

Supported Timeframes & Aggregation

The application supports 9 timeframes, aggregated from raw data on-the-fly:

Timeframe Aggregated From Available Coverage Use Case
1m 1m raw data ~33 days Scalping
5m 1m candles ~33 days Scalping
15m 1m candles ~33 days Day trading
30m 1m candles ~33 days Day trading
1h 1h raw data ~119 days Intraday
4h 1h candles ~119 days Swing trading
8h 1h candles ~119 days Swing trading
1d 1d raw data ~394 days Position trading
1w 1d candles ~394 days Position trading

How aggregation works: Higher timeframes are computed by combining lower-resolution candles. For example, 5-minute candles are built from five 1-minute candles (OHLCV aggregated), 4-hour candles from four 1-hour candles, and weekly candles from seven daily candles.

Data Quality (Gap Analysis)

Interval Symbols With Gaps Avg Missing
1d 214 0 0.00%
1h 192 4 0.02%
1m 188 184 4.99%

Note: Gaps in 1-minute data are expected—they occur when no trades happened for an asset during that minute, so no candlestick was created. This is normal market behavior, especially for lower-liquidity pairs.

Recommendations

Strategy Type Recommended Timeframes Coverage
Position trading 1d, 1w ~394 days
Swing trading 4h, 8h ~119 days
Intraday 1h ~119 days
Day trading 15m, 30m ~33 days
Scalping 1m, 5m ~33 days

Tip: For best results, use multiple timeframes together (e.g., 15m, 1h, 4h) to capture both short-term signals and longer-term trends.

📊 View Full Data Coverage by Symbol - See exact coverage for each of the 200+ supported assets.


Running Your First Evolution

Step 1: Configure Evolution Parameters

From the main Evolution tab, configure:

  • Asset: Select the trading pair (e.g., BTC)
  • Date Range: Set start and end dates for backtesting
  • Timeframe Intervals: Select which candle intervals to analyze
  • Max Iterations: How many evolution cycles to run

Step 2: Start Evolution

Click Start Evolution to begin. The AI will:

  1. Generate initial trading strategies
  2. Backtest each strategy against historical data
  3. Evaluate performance metrics (Sharpe, Win Rate, etc.)
  4. Iterate and improve strategies
  5. Report the best performing strategy

Step 3: Review Results

Once complete, the results panel shows:

  • Strategy parameters and logic
  • Backtest performance metrics
  • Trade history and statistics

Troubleshooting

"App is damaged and can't be opened"

This happens with unsigned apps on macOS. Fix:

xattr -cr /Applications/gopher-desktop-*.app

API Key Not Working

  1. Verify the key is correct (no extra spaces)
  2. Check your account has credits/quota
  3. Click Test to see the specific error

Database Connection Failed

  1. Verify TimescaleDB is running
  2. Check the connection string format
  3. Ensure your IP is whitelisted (if using cloud DB)


Viewing History

Navigate to the History tab to view past evolution runs and backtest results.

History

The History page shows:

  • Backtests: All backtest runs grouped by session
  • Monte Carlo: Monte Carlo validation results
  • Session status (running, completed, resumable)
  • Performance metrics (PnL, Win Rate, Sharpe, etc.)

Screenshots

The following screenshots are included:

Screenshot Description
01-main-dashboard.png Main Evolution dashboard
03-settings-general.png General settings (API keys, database)
04-settings-models.png Model selection settings
05-settings-trading.png Trading configuration
06-settings-advanced.png Advanced iteration settings
07-history.png History tab with backtest results

Version History

Version Date Changes
0.2.1-alpha 2026-01-17 Added 6 default presets, scrollable review modal, light/dark theme
0.2.0-alpha 2026-01-17 Updated screenshots, improved documentation
0.1.0-alpha 2026-01-14 Initial alpha release

Support


License

MIT License - see LICENSE for details.

About

AI-powered backtesting and strategy evolution for cryptocurrency trading

Resources

License

Stars

Watchers

Forks

Packages

No packages published