The Cognee Python SDK can connect to a remote Cognee instance usingDocumentation Index
Fetch the complete documentation index at: https://docs.cognee.ai/llms.txt
Use this file to discover all available pages before exploring further.
cognee.serve(). Once connected, all operations (remember, recall, forget, improve) route to the remote instance instead of running locally.
Connect to Cognee Cloud
~/.cognee/cloud_credentials.json. Subsequent calls to cognee.serve() reconnect without re-authenticating until the token expires.
Connect to any instance
For self-hosted or staging environments, pass the URL and API key directly:Local-to-local connections
Connect to a Cognee backend on the same machine or local network:cognee serve before connecting.
Usage after connection
Once connected, all SDK operations execute on the remote instance:The local UI in Cognee Cloud automatically detects running local instances on
localhost:8000 and shows their connection status.