Authentication with the Narada SDK
The Narada Python SDK uses API key authentication to securely access the Narada platform.
The SDK automatically manages browser windows and extension communication,
eliminating the need for manual Browser Window ID management.
API Key
An API Key is required to authenticate your requests to the Narada platform. This key identifies your account and authorizes access to all SDK functionality.
How to Obtain Your API Key
Navigate to Billing Page
Go to the Narada billing page to create an API key:
Go to Narada Billing Page
Create API Key
Click on Create API Key and follow the prompts.
Save Your API Key
The SDK automatically reads your API key from the NARADA_API_KEY environment variable. Set it up using one of these methods: Environment Variable
Python Code
Set the environment variable (recommended):export NARADA_API_KEY = your-api-key-here
The SDK will automatically detect and use this environment variable.
Pass directly to the SDK (for testing):import asyncio
from narada import Agent, BrowserEnvironment
async def main () -> None :
env = BrowserEnvironment( api_key = "your-api-key-here" )
agent = Agent( environment = env)
try :
response = await agent.run( prompt = "Say hello from Narada." )
print (response.text)
finally :
await env.close()
if __name__ == "__main__" :
asyncio.run(main())
This method is not recommended for production use. Use environment variables instead.