-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Discovery Tool Design
Status: Design + Stub (Phase 1) Related: Issue #2885
The Discovery Tool is an automated service that scans LLM providers for free/unlimited access methods, tests authentication bypasses, validates endpoints, and reports findings. It integrates into OmniRoute as an opt-in service (default off).
┌─────────────────────────────────────────────┐
│ Discovery Service │
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ │
│ │ Scanner │ │ Tester │ │ Reporter │ │
│ │ │ │ │ │ │ │
│ │ - Probe │ │ - Auth │ │ - JSON │ │
│ │ URLs │ │ bypass │ │ report │ │
│ │ - Detect │ │ - Cookie │ │ - DB │ │
│ │ APIs │ │ extract│ │ store │ │
│ │ - Model │ │ - Rate │ │ - Notify │ │
│ │ disco │ │ limits │ │ │ │
│ └──────────┘ └──────────┘ └──────────┘ │
└─────────────────────────────────────────────┘
│ │ │
▼ ▼ ▼
Provider DB Test Results User Dashboard
- Probes known provider URLs for API endpoints
- Detects authentication requirements (none, cookie, API key, OAuth)
- Discovers available models via
/v1/modelsor equivalent - Checks for rate limits and free tier availability
- Tests authentication bypass methods (cookie extraction, public endpoints)
- Validates session token freshness
- Measures rate limits and quotas
- Tests streaming support
- Generates structured JSON reports
- Stores findings in SQLite (
discovery_resultstable) - Sends notifications for high-value discoveries
- Updates provider registry suggestions
interface DiscoveryConfig {
enabled: boolean; // Default: false (opt-in)
scanInterval: number; // ms between scans (default: 24h)
maxConcurrentScans: number; // parallel scan limit (default: 3)
targetProviders: string[]; // specific providers to scan (empty = all known)
notificationWebhook?: string; // URL for discovery notifications
}CREATE TABLE discovery_results (
id INTEGER PRIMARY KEY AUTOINCREMENT,
provider_id TEXT NOT NULL,
method TEXT NOT NULL, -- 'free_tier', 'web_cookie', 'auto_register', 'trial'
endpoint TEXT,
auth_type TEXT, -- 'none', 'cookie', 'api_key', 'oauth'
models TEXT, -- JSON array of discovered models
rate_limit TEXT,
feasibility INTEGER, -- 1-5 scale
risk_level TEXT, -- 'none', 'low', 'medium', 'high', 'critical'
status TEXT DEFAULT 'pending', -- 'pending', 'testing', 'verified', 'rejected'
notes TEXT,
discovered_at TEXT DEFAULT (datetime('now')),
verified_at TEXT,
UNIQUE(provider_id, method, endpoint)
);
⚠️ Not yet implemented — Phase 2 (Future). The routes below are a design proposal, not live endpoints.src/lib/discovery/index.tsis an explicit Phase-1 stub and none of the discovery routes exist yet. They are intentionally documented here as the planned surface; thecheck-docs-symbolsquality gate suppresses them viaKNOWN_STALE_DOC_REFSuntil Phase 2 lands. See Implementation Plan → Phase 2.
| Method | Path | Description |
|---|---|---|
| GET | /api/discovery/results |
List all discovery results |
| GET | /api/discovery/results/:id |
Get specific result |
| POST | /api/discovery/scan |
Trigger manual scan |
| POST | /api/discovery/verify/:id |
Verify a discovery |
| DELETE | /api/discovery/results/:id |
Delete a result |
In OmniRoute dashboard settings:
{
discovery: {
enabled: false, // Default off
scanInterval: 86400000, // 24 hours
maxConcurrentScans: 3,
targetProviders: [],
}
}- Design doc
- Stub service (
src/lib/discovery/index.ts) - DB migration for
discovery_resultstable - Settings toggle in settings API
- Basic scanner that probes a single URL
- Full scanner with multi-provider support
- Auth bypass testing
- Model discovery
- Rate limit detection
- Dashboard UI tab
- Auto-registration integration
- Session pool management
- Continuous scanning
- Notification webhooks
- Discovery results may contain sensitive endpoint information
- Cookie/session data should be encrypted at rest
- Scan requests should respect rate limits to avoid IP bans
- Results should be user-scoped (not shared across instances)
OmniRoute · Website · npm · Docker Hub
- Setup Guide
- User Guide
- Features
- Quick Start (Docker)
- Electron Desktop App
- Termux (Android)
- PWA Guide
- MCP Server
- A2A Server
- Agent Protocols
- OpenCode Plugin
- Webhooks
- Cloud Agents
- Skills
- Memory
- Evals
- Gamification
- Guardrails
- Compliance
- Error Sanitization
- Public Credentials
- Route Guard Tiers
- Stealth Guide
- CLI Token Auth