Skip to main content

Configuration File

Create a .runflow/rf.json file:
{
  "agentId": "your_agent_id",
  "tenantId": "your_tenant_id",
  "apiKey": "your_api_key",
  "apiUrl": "http://localhost:3001"
}
The SDK automatically searches for .runflow/rf.json in the current directory and parent directories.

Configuration Priority

  1. Explicit config in code
  2. .runflow/rf.json
  3. Environment variables
  4. Defaults

Next Steps