Answer: Read agent metadata by making HTTP requests over the Unix socket at `CURSOR_AGENT_SOCKET` (default `/run/cursor/api.sock` on Cursor-managed VMs), using `GET /v1/meta-data[/]` with no body or extra headers. For example, curl the socket at `http://cursor-agent/v1/meta-data/agent/id` to read the agent id. Status: Confirmed Entry: tool/cursor/agents-and-automation/read-agent-metadata Revision: 1 Digest: sha256:1a0de51c00a30a97 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:10:02Z Last changed: 2026-11-13T03:10:02Z Last verified: 2026-11-20T12:36:30Z Next check: 2026-11-21T12:36:30Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of socket path | /run/cursor/api.sock | [1] | 2026-11-20 endpoint | GET /v1/meta-data[/] | [1] | 2026-11-20 request requirements | No body or extra headers. | [1] | 2026-11-20 missing key response | 404 | [1] | 2026-11-20 response content type | text/plain; charset=utf-8 | [1] | 2026-11-20 Sources: [1] Anysphere. "cursor.com/docs/cloud-agent/metadata.md". https://cursor.com/docs/cloud-agent/metadata.md Role: primary. Accessed: 2026-11-20T12:36:30Z Quote: "On Cursor-managed VMs the default is `/run/cursor/api.sock`." (Supports: socket path) Quote: "`GET /v1/meta-data[/]` over the Unix socket." (Supports: endpoint) Quote: "No body or extra headers." (Supports: request requirements) Quote: "A missing key returns `404`." (Supports: missing key response) Quote: "Successful reads are `text/plain; charset=utf-8`." (Supports: response content type) Snapshot SHA-256: c3aa314c702e8b6e34347856c034eeb88aa60c719ea5f5ba928b366d9f5158bf (captured 2026-11-13T03:10:02Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:10:02Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:36:30Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:36:30Z Last attempt: 2026-11-20T12:36:30Z Notes and limitations: Extracted automatically from a single official source (section "Read a value"). Related: https://latestn.com/tool/cursor/agents-and-automation/remote-control-handoff How do I hand off a local Cursor session to my phone using Remote Control? https://latestn.com/tool/cursor/agents-and-automation/restart-from-plan How do I start over from a plan in Cursor? https://latestn.com/tool/cursor/agents-and-automation/retry-transient-call How do I retry a transient read or idempotent call in a Cursor Agent SDK tool? https://latestn.com/tool/cursor/agents-and-automation/one-conversation-per-ticket How do I keep one Cursor agent conversation per ticket or thread in a webhook channel? https://latestn.com/tool/cursor/agents-and-automation/peer-vs-subagent What is the difference between a peer agent and a subagent in Cursor? https://latestn.com/tool/cursor/agents-and-automation/playground-multiple-agents-url How do I access the Cursor Agent SDK playground when hosting multiple agents? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:10:02Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/cursor/agents-and-automation/read-agent-metadata/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/cursor/agents-and-automation/read-agent-metadata POST: https://latestn.com/dispute/tool/cursor/agents-and-automation/read-agent-metadata with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/cursor/agents-and-automation/read-agent-metadata?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I read agent metadata from inside a Cursor Cloud Agent VM? Revision 1, last verified 2026-11-20T12:36:30Z. https://latestn.com/tool/cursor/agents-and-automation/read-agent-metadata (accessed 2026-11-21T10:02:16Z). @misc{LatestN_tool_cursor_agents_and_automation_read_agent_metadata_r1, title = {How do I read agent metadata from inside a Cursor Cloud Agent VM?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/cursor/agents-and-automation/read-agent-metadata}}, note = {Revision 1; digest sha256:1a0de51c00a30a97; last verified 2026-11-20T12:36:30Z; accessed 2026-11-21T10:02:16Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/cursor/agents-and-automation/read-agent-metadata