AI agents are good at producing files: reports, exports, generated images, builds. They are bad at handing them over. A file created inside a sandbox disappears when the session ends, and pasting a 30 MB CSV into a chat is not an option. Agents need what people have: somewhere to put files, a link to share, and a way to receive files back.

Three things an agent needs from file storage

  1. Hand over results. Upload a deliverable and return a link a person can open in a browser.
  2. Remember between sessions. Keep working files somewhere persistent, so tomorrow's run can continue from today's.
  3. Receive input. Ask a person for a file and wait until it arrives, instead of asking them to paste it.

What MCP is

The Model Context Protocol (MCP) is an open standard for connecting AI applications to tools. An MCP server exposes tools such as "upload a file" or "list files". Any MCP client, including Claude Desktop, Claude Code and Cursor, can then call them. You configure the server once, and every conversation can use it.

Setting up Sehihi for an agent

First create an API key on your account page. Choose read if the agent only needs to fetch files, or read and write if it should upload. Then add the MCP server.

Claude Code:

claude mcp add sehihi --env SEHIHI_API_KEY=sehihi_… -- npx -y @sehihi/cli mcp

Claude Desktop, Cursor and other MCP clients, in the client's MCP configuration file:

{
  "mcpServers": {
    "sehihi": {
      "command": "npx",
      "args": ["-y", "@sehihi/cli", "mcp"],
      "env": { "SEHIHI_API_KEY": "sehihi_…" }
    }
  }
}

Restart the client, and the agent can now send files, manage a persistent drive, create upload requests and download share links. Try asking: "Export the results to CSV and send me a link that expires in three days."

Example workflows

  • Reporting: an agent builds a weekly report, uploads it and posts the link in your team chat.
  • Long-running research: an agent saves notes and intermediate data to research/ in its drive and picks them up next session.
  • Human in the loop: an agent needs a signed PDF, creates an upload request, sends the link to a person and waits until the file arrives.
  • CI and builds: a pipeline uploads build artifacts and shares them with testers. See the command line guide.

Keeping it safe

  • One key per agent or tool. If one leaks, revoke it without breaking the others.
  • Least privilege. A read-only key cannot upload, share or delete.
  • Keys can't touch your account. Sehihi API keys work on files only. They cannot change billing, plans or account settings.
  • Watch the activity log. Every action by a key is recorded with time, network address and client, so you can see what an agent did.
  • Keep keys out of prompts and repositories. Put them in environment variables or the client's config, never in chat messages or committed files.
  • Mind data residency. Files your agents handle often contain company data. Sehihi stores them in Germany. See GDPR and file transfer.

Full command and tool reference: Sehihi for AI agents.