In short.
OpenRouter’s Containers reference is documentation for Go developers handling files from shell sessions, but requests require the exact container ID returned by the relevant session. Its four operations cover discovery, metadata, streamed downloads and promotion into durable workspace storage. The most consequential details are pagination that can return empty pages with more results available, and promotion that consumes workspace storage quota. Pricing, SDK compatibility, retention guarantees and licensing are not established, and the examples were not executed.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes the entire documentation page at [https://openrouter.ai/docs/client-sdks/go/sdks/containers/README.md], including its overview, examples, parameter tables, return types, error tables and documentation-index notice. Linked pages, the documentation index’s contents, SDK source code and referenced model definitions are excluded. No code was compiled or executed and no API requests were made; live behavior, compatibility, performance and reliability remain unassessed.
The overview
Identity
This is the Containers API reference within OpenRouter’s Go SDK documentation at [https://openrouter.ai/docs/client-sdks/go/sdks/containers/README.md]. Its examples initialize an OpenRouter SDK client and call methods on s.Containers. The page documents file operations for existing containers; it does not explain how to create a container or start a shell session.
Assessment
The reference is useful for adding container-file handling to an existing Go integration. Each operation has an example, parameter table, return type and error table, while the listing documentation explains important pagination edge cases. Beginners will need additional guidance for obtaining credentials and creating sessions. Compilation, live responses, performance and reliability remain unassessed.
Users
The intended audience is Go developers whose applications need to find files in a shell-session container, inspect their metadata, retrieve their contents or preserve them after the container ends. Experienced developers get method signatures and operational details; beginners get short examples but no end-to-end application tutorial.
Capabilities
ListContainerFiles lists files in lexicographic path order. GetContainerFile retrieves one file’s metadata. DownloadContainerFileContent streams its raw bytes. PromoteContainerFile copies a sandbox file into durable workspace document storage and returns its new document identity.
The documented return types are *components.ContainerFileListResponse, *components.ContainerFile, io.ReadCloser and *components.FileResponse, respectively; each method also returns an error. Promotion responses can contain Anthropic, OpenAI or OpenRouter file shapes, with GetUnknownRaw() available for an unknown response type.
Using it
Requirements
The examples require a Go application using the OpenRouter Go SDK, a context.Context and an API key read from OPENROUTER_API_KEY through openrouter.WithSecurity. Every operation requires a containerID; metadata retrieval, downloading and promotion also require a fileID. Credential provisioning, required permission scopes and workspace configuration are not explained.
Mechanism
Use the canonical container ID exactly as returned by the bash/shell tool result. A session-derived ID uses sess_ plus a sanitized session key, which can differ from the submitted session ID. Restarted sessions have separate IDs with a -r<nonce> suffix. File IDs use cfile_ followed by the base64url-encoded file path.
Listing accepts a limit from 1 to 1000 and defaults to 100. Continue by passing the previous response’s last_id as after. At the internal scan boundary, last_id can represent a directory-marker scan position absent from data, and data can be empty. A true has_more still means another page is fetchable, so an empty page does not establish completion.
Setup
The documented initialization creates a context with context.Background(), reads OPENROUTER_API_KEY from the environment and passes it to openrouter.New through openrouter.WithSecurity. Each example then calls a Containers method and checks the returned error. The page gives no installation command, pinned SDK release or minimum Go version.
Example
For a report generated in a shell session, an integration could list that session’s container with a limit of 100 and no initial cursor, then continue using last_id while has_more is true. After locating the file, it could retrieve metadata, download its bytes or promote it for persistence beyond the container.
The examples use sess_abc123 and cfile_b3V0L3JlcG9ydC5jc3Y as illustrative identifiers. An application must substitute actual returned identifiers. Downloading yields an io.ReadCloser, so the caller should read and close the stream. This sequence is an illustration of the documented operations; it was not executed.
Assessment & evidence
Limitations
The page does not document container creation, container lifetime, maximum file size, quota capacity or deletion behavior. Promotion is described as outliving the container; a retention duration or backup guarantee is not stated.
The error tables include authentication and permission failures, rate limiting and server failures. Operations targeting an individual file also document 404 responses. Promotion additionally documents 413 Payload Too Large and 499 Client Closed Request. Retry behavior, recovery procedures and numeric payload limits are not explained.
Reasoning
The documented operations support distinct decisions: inspect metadata when only file information is needed, download when bytes are needed immediately, and promote when a file must outlive its container. Promotion introduces a storage-quota consequence. Keeping returned IDs and cursors intact matters because reconstructing them from a raw session ID or stopping at an empty listing page can conflict with the documented behavior.
Alternatives
Within this reference, direct container downloads and promotion serve different persistence needs: downloading streams the current file, while promotion creates a durable workspace document. The page also states that promoted files are downloadable, unlike direct uploads, but does not document that upload workflow. It provides no comparison with other SDKs or storage services.
Evidence
The evidence is the complete documentation page at [https://openrouter.ai/docs/client-sdks/go/sdks/containers/README.md]. It includes four method examples, parameter descriptions, response types and error tables. These support statements about documented API behavior, but do not establish successful execution, service reliability or compatibility with a particular SDK release.
Access & freshness
Costs
API request prices, download charges, storage prices and included capacity are unknown from this page. Promotion explicitly counts the copied file against the workspace’s storage quota, but the quota size and billing consequences are not given. The evidence does not support a cost estimate or a claim that these operations are free.
Rights
The captured page supplies no license or redistribution grant for the documentation, examples or SDK. Their reuse and redistribution terms therefore remain unknown from this evidence. Ownership and service terms governing stored documents are also unspecified.
Freshness
The page was captured on 25 November 2026 at 20:35:25.288 UTC. It contains no publication date, update date or SDK release number. The capture timestamp establishes when this text was recorded, but does not establish its compatibility with any installed release or subsequent API behavior.
Actions
Before integration, establish the supported SDK and Go versions, credential permissions, storage limits and pricing from additional official documentation. Preserve the returned container and file IDs, paginate using last_id and has_more, and close downloaded streams. If preserving files through promotion, account for workspace quota and handle the returned FileResponse variant, including unknown types.
