Serverless Quickstart
Deploy a secure AI environment in under 2 minutes using the Lucid CLI. No infrastructure setup required.
Alpha Access Required
Lucid is in private alpha. Request access before proceeding.
Prerequisites
- Python 3.12+
- A Lucid alpha account
Step 1: Install the CLI
pip install lucid-clilucid --versionlucid-cli 0.1.0
Step 2: Authenticate
lucid loginEmail: user@example.com
Password:
Logged in as user@example.com
Password:
Logged in as user@example.com
Or with flags for scripting:
lucid login -e user@example.com -p mypasswordLogged in as user@example.com
Step 3: Browse the Catalog
See what's available to deploy:
lucid catalog modelsMODEL ID NAME PROVIDER CONTEXT TEE
meta-llama/Llama-3.1-8B-Instruct Llama 3.1 8B Instruct meta 128K Yes
meta-llama/Llama-3.1-70B-Instruct Llama 3.1 70B Instruct meta 128K Yes
Qwen/Qwen2.5-72B-Instruct Qwen 2.5 72B alibaba 128K Yes
microsoft/Phi-3.5-mini-instruct Phi 3.5 Mini microsoft 128K Yes
lucid catalog appsID NAME CATEGORY VERIFIED TEE
open-webui Open WebUI chat True Yes
openhands OpenHands autonomous_dev True Yes
dify Dify agent_builder True Yes
lobechat LobeChat chat True Yes
lucid catalog auditorsPROFILE NAME AUDITORS RECOMMENDED FOR
coding Coding Profile injection, eval OpenHands, bolt.diy
chat Chat Profile injection, toxicity, sovereignty Open WebUI, LobeChat
workflow Workflow Profile injection, soc2 Dify, n8n, Langflow
customer Customer Profile injection, toxicity, pii, soc2 Chatwoot, Botpress
default Default Profile injection General purpose
meta-llama/Llama-3.1-8B-Instruct Llama 3.1 8B Instruct meta 128K Yes
meta-llama/Llama-3.1-70B-Instruct Llama 3.1 70B Instruct meta 128K Yes
Qwen/Qwen2.5-72B-Instruct Qwen 2.5 72B alibaba 128K Yes
microsoft/Phi-3.5-mini-instruct Phi 3.5 Mini microsoft 128K Yes
lucid catalog appsID NAME CATEGORY VERIFIED TEE
open-webui Open WebUI chat True Yes
openhands OpenHands autonomous_dev True Yes
dify Dify agent_builder True Yes
lobechat LobeChat chat True Yes
lucid catalog auditorsPROFILE NAME AUDITORS RECOMMENDED FOR
coding Coding Profile injection, eval OpenHands, bolt.diy
chat Chat Profile injection, toxicity, sovereignty Open WebUI, LobeChat
workflow Workflow Profile injection, soc2 Dify, n8n, Langflow
customer Customer Profile injection, toxicity, pii, soc2 Chatwoot, Botpress
default Default Profile injection General purpose
Step 4: Deploy
Deploy an environment with a single command:
lucid apply --app open-webui --model llama-3.1-8b --profile chat[*] Creating serverless environment...
[+] Environment created: env-abc123def456
Connection URL: https://env-abc123def456.serverless.lucid.ai
App: open-webui
Model: meta-llama/Llama-3.1-8B-Instruct
Auditors: injection, toxicity, sovereignty
Region: us-east-1
[+] Environment ready! No infrastructure provisioning needed.
[+] Environment created: env-abc123def456
Connection URL: https://env-abc123def456.serverless.lucid.ai
App: open-webui
Model: meta-llama/Llama-3.1-8B-Instruct
Auditors: injection, toxicity, sovereignty
Region: us-east-1
[+] Environment ready! No infrastructure provisioning needed.
Your environment is now live at the connection URL.
Step 5: Verify TEE Attestation
Confirm your environment is running in a Trusted Execution Environment:
lucid verify environment env-abc123def456[*] Fetching routing info for environment env-abc123def456...
[+] Model: https://model-xyz.serverless.lucid.ai (us-east-1) - amd_sev_snp
[+] Auditor: https://auditor-abc.serverless.lucid.ai (us-east-1) - amd_sev_snp
[+] App: https://app-123.serverless.lucid.ai (us-east-1) - amd_sev_snp
[*] 3/3 endpoints have attestation reports
[+] Model: https://model-xyz.serverless.lucid.ai (us-east-1) - amd_sev_snp
[+] Auditor: https://auditor-abc.serverless.lucid.ai (us-east-1) - amd_sev_snp
[+] App: https://app-123.serverless.lucid.ai (us-east-1) - amd_sev_snp
[*] 3/3 endpoints have attestation reports
Deployment Options
| Flag | Description | Example |
|---|---|---|
--app <id> |
App from catalog | --app open-webui |
--model <id> |
Model from catalog | --model llama-3.1-70b |
--profile <name> |
Auditor profile | --profile coding |
--region <code> |
Data residency | --region eu |
Example: Coding Assistant
lucid apply --app openhands --model llama-3.1-70b --profile coding[+] Environment created: env-xyz789...
Connection URL: https://env-xyz789.serverless.lucid.ai
App: openhands
Model: meta-llama/Llama-3.1-70B-Instruct
Auditors: injection, eval
Connection URL: https://env-xyz789.serverless.lucid.ai
App: openhands
Model: meta-llama/Llama-3.1-70B-Instruct
Auditors: injection, eval
Example: EU Data Residency
lucid apply --model qwen-72b --profile workflow --region eu[+] Environment created: env-eu456...
Region: eu-west-1
Region: eu-west-1
Managing Your Environment
Check Status
lucid statusAgents (1):
NAME STATUS MODEL GPU
my-agent running meta-llama/Llama-3.1-8B A100
NAME STATUS MODEL GPU
my-agent running meta-llama/Llama-3.1-8B A100
View Logs
lucid logs my-agent[2024-01-15 10:30:00] Agent started
[2024-01-15 10:30:01] Auditors initialized
[2024-01-15 10:30:05] Request processed: injection=pass, toxicity=pass
[2024-01-15 10:30:01] Auditors initialized
[2024-01-15 10:30:05] Request processed: injection=pass, toxicity=pass
View AI Passports
lucid passport listID AGENT TIMESTAMP
pass-001 agent-abc123 2024-01-15T10:30:00Z
pass-002 agent-abc123 2024-01-15T10:31:00Z
lucid passport show pass-001Passport ID: pass-001
Hardware Attested: true
TEE Type: AMD SEV-SNP
Auditors: injection, toxicity, sovereignty
pass-001 agent-abc123 2024-01-15T10:30:00Z
pass-002 agent-abc123 2024-01-15T10:31:00Z
lucid passport show pass-001Passport ID: pass-001
Hardware Attested: true
TEE Type: AMD SEV-SNP
Auditors: injection, toxicity, sovereignty
Next Steps
- Authentication - Set up API keys for CI/CD
- Deployment Modes - Compare serverless vs self-hosted
- Auditor Catalog - Explore available auditors
- Self-Hosted Guide - Deploy on your own infrastructure