Lakecode consists of three components that work together:
CLI (your machine)
|
|-- Platform API calls (direct, using your credentials)
|
|-- AI requests --> Proxy Worker (Cloudflare)
|-- Verify license key (Ed25519)
|-- Check balance / deduct credits
|-- Forward to Anthropic API
|-- Return response to CLI
A license key (lk_<base64url>) is an Ed25519-signed payload containing:
The signing key is held by the Auth Worker. The corresponding public key is embedded in the Proxy Worker for verification. Keys cannot be forged or tampered with.
On first run (or when the cache is stale), Lakecode calls the Databricks or Snowflake REST API to discover your workspace topology: catalogs, schemas, tables, and SQL warehouses. This profile is cached locally in ~/.lakecode/ and refreshed periodically. It allows the AI to understand your environment without you having to describe it every time.