repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
public Clawd ADK gateway launch mirror
stars
latest
clone command
git clone gitlawb://did:key:z6Mkq5mY...iFZ5/my-project-publ...git clone gitlawb://did:key:z6Mkq5mY.../my-project-publ...2fa351d6docs: add automaton and perps launch sources15d ago| #1 | # ═══════════════════════════════════════════════════════════════ |
| #2 | # CLOUDFLARE WORKERS - AI Agent API |
| #3 | # Wrangler configuration for deployment |
| #4 | # ═══════════════════════════════════════════════════════════════ |
| #5 | |
| #6 | name = "agent-api" |
| #7 | main = "src/index.ts" |
| #8 | compatibility_date = "2024-01-01" |
| #9 | compatibility_flags = ["nodejs_compat"] |
| #10 | |
| #11 | # ───────────────────────────────────────────────── |
| #12 | # D1 Database (SQLite at the edge) |
| #13 | # ───────────────────────────────────────────────── |
| #14 | [[d1_databases]] |
| #15 | binding = "DB" |
| #16 | database_name = "agent-db" |
| #17 | database_id = "b450142c-4016-455f-a650-de304d8d97e1" |
| #18 | |
| #19 | # ───────────────────────────────────────────────── |
| #20 | # KV Namespace for Sessions & Rate Limiting |
| #21 | # ───────────────────────────────────────────────── |
| #22 | [[kv_namespaces]] |
| #23 | binding = "SESSIONS" |
| #24 | id = "4b317c6609ef41d18c5e85f3d9058bba" |
| #25 | |
| #26 | [[kv_namespaces]] |
| #27 | binding = "RATE_LIMITS" |
| #28 | id = "4f231b976c6a4465aa082705a2d28527" |
| #29 | |
| #30 | # ───────────────────────────────────────────────── |
| #31 | # Environment Variables (Secrets) |
| #32 | # ───────────────────────────────────────────────── |
| #33 | # Set these with: wrangler secret put <NAME> |
| #34 | # Wallet: |
| #35 | # - CROSSMINT_SERVERSIDE_API_KEY |
| #36 | # - CROSSMINT_CLIENTSIDE_API_KEY |
| #37 | # - SOLANA_RPC_URL |
| #38 | # Model Providers: |
| #39 | # - OPENAI_API_KEY |
| #40 | # - ANTHROPIC_API_KEY |
| #41 | # - PHALA_API_KEY (for Phala Confidential AI - https://api.redpill.ai) |
| #42 | # - DEEPSEEK_API_KEY |
| #43 | |
| #44 | [vars] |
| #45 | ENVIRONMENT = "production" |
| #46 | CORS_ORIGIN = "*" |
| #47 | |
| #48 | # ───────────────────────────────────────────────── |
| #49 | # Development Settings |
| #50 | # ───────────────────────────────────────────────── |
| #51 | [dev] |
| #52 | port = 8787 |
| #53 | local_protocol = "http" |
| #54 | |
| #55 | # ───────────────────────────────────────────────── |
| #56 | # Staging Environment |
| #57 | # ───────────────────────────────────────────────── |
| #58 | [env.staging] |
| #59 | name = "agent-api-staging" |
| #60 | vars = { ENVIRONMENT = "staging" } |
| #61 | |
| #62 | [[env.staging.d1_databases]] |
| #63 | binding = "DB" |
| #64 | database_name = "agent-db-staging" |
| #65 | database_id = "YOUR_STAGING_DB_ID" |
| #66 | |
| #67 | [[env.staging.kv_namespaces]] |
| #68 | binding = "SESSIONS" |
| #69 | id = "YOUR_STAGING_KV_ID" |
| #70 | |
| #71 | [[env.staging.kv_namespaces]] |
| #72 | binding = "RATE_LIMITS" |
| #73 | id = "YOUR_STAGING_RATE_LIMIT_KV_ID" |
| #74 |