API Keys
API Keys
One key opens every door: the MCP server, the Python SDK, and the REST API all authenticate with the same key. Create one from the playground in seconds.
Getting a key
Create a free account and generate an API key from the playground. You can create multiple keys and revoke any of them at any time. The key is shown once, so copy it when it appears.
Key format
Litica API keys follow the format lk_ followed by a string of characters, for example:
lk_AbCdEfGhIjKlMnOpQrStUvWxYz...Keep this key private. It grants full access to your memory on the Litica server.
Using your key
Everywhere, the key travels as the X-API-Key header. On the MCP path it sits in your client config (see the configuration guide):
"--header",
"X-API-Key:lk_your-key-here"On the SDK path, pass it to the client or set it once as an environment variable (see SDK configuration):
export LITICA_API_KEY="lk_your-key-here"
# then in Python:
client = litica.Client() # picks the key up automaticallySecurity
- Never share your key or commit it to source control.
- If you suspect your key is compromised, contact about@litica.org and we will revoke it and issue a new one.
- Your key is tied to your account. No other user can access your memory.