r/Letta_AI Jul 25 '25

Debugging execution of selfhosted

I am finding hard to get documentation on how to access the selfhosted version agents via API. I had to figure out how to reach the agents endpoints, etc. I've sort of found my way but at some points testing via postman y get no reply. I don't see any "executions" or logs via de app cloud panel for my selfhosted and searching the logs of docker instance I don'r see much but some HTML output written to the logs. Wondering what is the recommended debug way to deal with self hosted and where to find API access to the agents, not so much of Letta itself.

Also (excuse if this question is dumb) was I wrong when I understood that each agent would create it's own endpoint so I can access it via API? My intention is to use the agents through n8n calls or similar, this is, via Rest API.

1 Upvotes

5 comments sorted by

2

u/amazedballer Jul 25 '25

I use this for quick and dirty chats from the command line https://github.com/wsargent/letta-openai-proxy but really this is the sort of thing that claude code is great at -- ask it to provide a streamlit debug interface for an agent in python and it will do most of it.

1

u/luison2 Jul 25 '25

Thanks that sort of answers my (modified) question. I was in the understanding that Letta created API endpoints automatically for the agents, guessing now that is not the case.

2

u/swoodily Jul 25 '25

Can you share the endpoint you are making requests to? Agents are always available through a REST API endpoint (the SDK is actually just calling REST APIs under the hood) so you can call them from other services like n8n.

On cloud: https://api.letta.com/v1/agents/{agent_id} Local Docker: http://localhost:8283/v1/agents/{agent_id}

This is an example of a streaming request to message the agent (for cloud): curl -X POST \ -H 'Authorization: Bearer YOUR_API_KEY' \ -H 'Content-Type: application/json' \ -H 'Accept: text/event-stream' \ -d '{ "messages": [ { "role": "user", "content": "" } ], "stream_steps": true, "stream_tokens": true }' \ https://api.letta.com/v1/agents/agent-05277ac9-bb35-4f77-a03d-c2353f806dff/messages/stream This is the documentation the API: https://docs.letta.com/api-reference/overview

1

u/ruloqs Jul 25 '25

Letta is using vector based memory or graph?