Environment Variables¶
A complete reference of all environment variables used by InnoClaw.
Core Configuration¶
Variable |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
|
Yes |
— |
Comma-separated absolute paths where workspaces can be created. Directories must exist on the server. |
|
|
No |
|
SQLite database filesystem path. Set to a local path when the project resides on NFS or another network filesystem. |
|
|
No |
|
Next.js build output directory. Set to a local filesystem path to avoid Turbopack cache errors on network/shared filesystems. |
AI Provider Configuration¶
Variable |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
|
No |
— |
OpenAI API key for chat and embedding. |
|
|
No |
— |
Anthropic API key for Claude models. |
|
|
No |
— |
Google Gemini API key for Gemini models. |
|
|
No |
|
Custom OpenAI-compatible API endpoint (for proxies or third-party providers). |
|
|
No |
|
Custom Anthropic API endpoint. |
|
|
No |
— |
Custom Gemini-compatible API endpoint (OpenAI-compatible proxy). |
|
|
No |
|
Default LLM provider: |
|
|
No |
|
Default model ID. Overridable in Settings UI. |
Note
At least one AI API key (OpenAI, Anthropic, or Gemini) is needed for AI chat and note generation features. Without any API key, workspace management, file browsing, and other non-AI features still work.
Agent Configuration¶
Variable |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
|
No |
|
Maximum agent tool-call steps per request (1–100). Higher values allow complex multi-step tasks but cost more tokens. |
Embedding API Configuration¶
These allow using a separate service for vector embeddings, independent of the chat model provider.
Variable |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
|
No |
Falls back to |
API key for the embedding service. |
|
|
No |
Falls back to |
Endpoint for the embedding service. |
|
|
No |
|
Name of the embedding model to use. |
Example — Using a dedicated embedding service:
# Chat model (via OpenAI-compatible proxy)
OPENAI_API_KEY=sk-your-chat-key
OPENAI_BASE_URL=http://your-proxy:3888/v1
# Embedding model (separate configuration)
EMBEDDING_API_KEY=sk-your-embedding-key
EMBEDDING_BASE_URL=http://your-proxy:3888/v1
EMBEDDING_MODEL=google/gemini-embedding-001
GitHub Integration¶
Variable |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
|
No |
— |
GitHub Personal Access Token for cloning/pulling private repositories. Requires |
HuggingFace / ModelScope Datasets¶
Variable |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
|
No |
— |
HuggingFace access token. Avoids rate limits when downloading datasets. Also settable via the Settings UI. |
|
|
No |
|
Local directory for downloaded HuggingFace/ModelScope datasets. |
SCP Hub (Scientific Skills)¶
Variable |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
|
No |
— |
API key for the Intern-Discovery Platform, enabling 206 built-in SCP scientific skills (drug discovery, protein analysis, genomics, chemistry, etc.). |
HTTP Proxy¶
Variable |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
|
No |
— |
HTTP proxy for all outbound |
|
|
No |
— |
HTTPS proxy. Typically the same value as |
|
|
No |
— |
Comma-separated hosts/CIDRs that bypass the proxy, e.g. |
Feishu (Lark) Bot Configuration¶
Variable |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
|
No |
|
Enable Feishu bot integration. |
|
|
No |
— |
Feishu application ID. |
|
|
No |
— |
Feishu application secret. |
|
|
No |
— |
Token for verifying Feishu webhook requests. |
|
|
No |
— |
Encryption key for Feishu event payloads. |
|
|
No |
— |
Shared secret for authenticating the push API ( |
|
|
No |
|
SDK log verbosity: |
WeChat Enterprise Bot Configuration¶
Variable |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
|
No |
|
Enable WeChat Enterprise bot integration. |
|
|
No |
— |
WeChat Enterprise corporation ID. |
|
|
No |
— |
WeChat Enterprise application secret. |
|
|
No |
— |
Token for verifying WeChat webhook requests. |
|
|
No |
— |
AES key for encrypting/decrypting WeChat messages. |
|
|
No |
— |
WeChat Enterprise agent (application) ID. |
Kubernetes / Cluster Integration¶
Variable |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
|
No |
— |
Path to your kubeconfig file for Kubernetes cluster access. |
|
|
No |
— |
AD account name used as the job submitter identity. |
|
|
No |
— |
Kubernetes secret name for pulling container images. |
|
|
No |
— |
PersistentVolumeClaim name for AI4S shared storage. |
|
|
No |
— |
PersistentVolumeClaim name for user storage. |
|
|
No |
— |
PersistentVolumeClaim name for AI4S A2 partition storage. |
|
|
No |
— |
Username for PVC mount path resolution. |
Security Notes¶
All API keys and tokens are used server-side only and are never exposed to the browser client.
Store your
.env.localfile securely and do not commit it to version control.The
.gitignorefile already excludes.env*files (except.env.example).