diff --git a/.env.example b/.env.example index 8839be6..446f833 100644 --- a/.env.example +++ b/.env.example @@ -22,3 +22,9 @@ VECTOR_DB_ENABLED=false # VECTOR_DB_TYPE=pinecone|weaviate|chroma # VECTOR_DB_API_KEY=your-api-key # VECTOR_DB_ENDPOINT=https://your-instance.vectordb.com + +# OpenClaw Configuration (Optional) +# Set OPENCLAW_ENABLED=true to enable OpenClaw features +# OPENCLAW_ENABLED=false +# OPENCLAW_API_KEY=your-api-key +# SERVICE_BASE_URL_OPENCLAW=https://api.openclaw.com diff --git a/src/config/index.ts b/src/config/index.ts index 61c983c..ca76761 100644 --- a/src/config/index.ts +++ b/src/config/index.ts @@ -38,6 +38,14 @@ export const ConfigSchema = z.object({ endpoint: z.string().url().optional(), }) .optional(), + + openClaw: z + .object({ + enabled: z.coerce.boolean().default(false), + apiKey: z.string().optional(), + baseUrl: z.string().url().optional(), + }) + .optional(), }); export type Config = z.infer; @@ -70,6 +78,11 @@ export function loadConfig(): Config { apiKey: process.env.VECTOR_DB_API_KEY, endpoint: process.env.VECTOR_DB_ENDPOINT, }, + openClaw: { + enabled: process.env.OPENCLAW_ENABLED, + apiKey: process.env.OPENCLAW_API_KEY, + baseUrl: process.env.SERVICE_BASE_URL_OPENCLAW, + }, }; // Parse and validate configuration