- AUDIT
- FINANCE
- DEBUG
- HUMAN
Short answer
How can I get my LLM usage logs out of Portkey?
You can ask your AI to find specific logs or export entire datasets for external use. This gives you the raw data needed for compliance audits or budget reviews.
Data outcomes.
Where your data lands.
The AI processes your request and directs the output to one of these four outcomes.
AUDIT
Compliance reports
The AI pulls specific request logs to satisfy security or regulatory requirements. You get a clean set of data for your auditors.
FINANCE
Cost analysis
Your agent extracts usage metrics to help you track spending. This data is ready for your spreadsheets or billing tools.
DEBUG
Error investigation
The AI identifies failed requests or latency spikes in the logs. You get the exact details needed to fix broken prompts.
HUMAN
Manual review
The AI flags suspicious activity or unusual spending patterns. You decide if these logs require a deeper investigation.
The workflow
What your AI does when the request arrives.
Your agent acts as the bridge between your chat interface and the Portkey data stream.
Scan history
The agent looks through your recent activity to find the specific logs you asked for.
list_logsFilter data
The AI narrows down the results based on your specific timeframes or error types.
list_logsPackage logs
The agent bundles the requested log entries into a format ready for export.
export_logsDeliver files
The AI provides the final data set so you can move it into your own tools.
export_logs
Try it
Copy these to start.
Use these prompts to trigger the Portkey connector immediately.
Starting points
Replace the bracketed text with your specific dates, error types, or user IDs.
Portkey Connector
You're all set. Choose your MCP client and follow the setup instructions.
https://edge.vinkius.com/vk_preview_BpHtQMK896fkGyepmah9cM552NpibU6fUP5BakNG/mcpClaude Desktop
Follow the steps below to connect in seconds.
- 1In Claude Desktop, open Settings → Connectors.
- 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
- 3Click Add and start a new chat — Portkey capabilities are ready to use.
{
"mcpServers": {
"portkey-mcp": {
"url": "https://edge.vinkius.com/vk_preview_BpHtQMK896fkGyepmah9cM552NpibU6fUP5BakNG/mcp"
}
}
}List all logs from the last 24 hours.
Export all logs that resulted in a 400 error.
Find the logs for user 'dev_team_alpha' from yesterday.
Export a CSV of all LLM usage from last Monday.
Claude
ChatGPT
Cursor
VS Code
Windsurf
Claude Code
JetBrains
Cline
Start here
Connect Portkey once, then ask.
Click the link to authorize the connection. Your credentials stay encrypted, and you can start asking questions right away.
Connect Portkey to your AIFAQ
How this task behaves.
- 01
Can the AI delete logs from Portkey?
No. The AI can only read and export data; it cannot modify or delete your logs.
- 02
Can I export logs directly to a Google Sheet?
No. The AI can export the logs for you to download, but it cannot write directly to your spreadsheets.
- 03
Does the AI see my API keys?
No. Your credentials are encrypted and managed by Vinkius, not the AI client.
- 04
Can I filter logs by specific model names?
Yes, you can ask the AI to find logs for specific models within your history.
- 05
What format will the exported logs be in?
The AI will package the logs into a standard format suitable for your analysis tools.
More questions about Portkey? The Connector page answers them. See everything the Portkey Connector can do
Connect Portkey to Claude, Cursor, ChatGPT & more
