Access Doku UI and Generate an API Key
With Doku running, the next step is to access the Doku UI and generate an API key for secure communication between your applications and Doku.
- Open your browser and go to Doku UI at
127.0.0.1:3000/login - Login using theb default credentials
- Email as
user@dokulabs.com - Password as
dokulabsuser
- Email as
- Once you have logged into Doku UI, Go to API Keys page and Create an API Key. Copy the generated API Key.
Instrument your Application
Choose the appropriate SDK for your LLM application’s programming language and follow the steps to integrate monitoring with just two lines of code.
- Python
- NodeJS
Add the following two lines to your application code:
Add the snippet below to your Python application, replace Example Usage for monitoring Refer to the
YOUR_DOKU_TOKEN with API key you created in Step 2.OpenAI Usage:dokumetry Python SDK repository for more advanced configurations and use cases.Visualize and Analyze
Once you have Doku Ingester and 


DokuMetry SKDs set up, you can instantly get insights into how your LLM applications. Just head over to Doku UI at 127.0.0.1:3000 on your browser to start exploring.With Doku, you get a simple, powerful view into important info like how much you’re spending on LLMs, which parts of your app are using them the most, and how well they’re performing. Find out which LLM models are favorites among your applications, and dive deep into performance details to make smart decisions. This setup is perfect for optimizing your app performance and keeping an eye on costs.


Integrations
Integrate your LLM Provider with Doku
Connections
Connect to your existing Observablity Platform

