Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DEBUG | No | Enable debug logging | |
| DOCS_PATH | No | Path to documentation submodule | ./lib/0g-docs |
| LOG_LEVEL | No | Logging level | info |
| OG_KV_URL | No | Custom KV client URL. Overrides network default. | |
| OG_EVM_RPC | No | Custom EVM RPC endpoint. Overrides network default. | |
| OG_NETWORK | No | Network selection: testnet or mainnet. Automatically sets default RPC endpoints for the selected network. | testnet |
| OG_INDEXER_RPC | No | Custom Indexer RPC endpoint. Overrides network default. | |
| OG_PRIVATE_KEY | No | Private key for signing blockchain transactions. Required for 0gStorageUpload and 0gKvSet operations. Keep this secret and never commit to version control. | |
| OG_FLOW_CONTRACT | No | Custom Flow contract address. Overrides network default. | |
| OG_SERVING_CONTRACT | No | Custom Serving contract address. Overrides SDK default. | |
| REBUILD_DOCS_ON_START | No | Rebuild docs on server startup | false |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
No tools | |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |