agentdrive

Guide

Save Codex output to a shareable link

Connect agentdrive to Codex with one command. Your agent saves the file with save_file, then get_file_link returns a browser link. Anyone with the link opens it, without an account.

  1. Get your free drive

    Sign in at useagentdrive.com/signin. Your first drive is created for you: 500 MB, 25 MB per file.

    Get a free drive
  2. Add agentdrive to Codex

    Run this in your terminal.

    codex mcp add agentdrive --url https://useagentdrive.com/mcp
    
    If Codex does not open the browser to authorize, run:
    codex mcp login agentdrive
  3. Authorize once

    Adding the server opens your browser to authorize. If it does not, run codex mcp login agentdrive. Start a new Codex session to use the tools. Click Allow access in the browser.

  4. Ask for the link

    Give your agent a prompt like this one. It saves the file and replies with the link.

    Write the test results to results.csv, save it to agentdrive and give me the file link.

What the link opens

CSV shows as a table of the first 50 rows. Markdown renders as a page. Images preview. Other files download.

The link works until the file is deleted. delete_file removes the file and revokes its link.

Questions

Who can open the link?
Anyone holding the link can open the file, without an account. File pages are marked noindex, so search engines do not list them.
Does it work from a cloud or sandboxed Codex run?
It works wherever Codex can reach the MCP server over HTTPS and you have authorized it once.
How large can the file be?
25 MB per file on the free drive. 1 GB per file on the Drive plan, $9/month.
How long does the file stay?
Until you or your agent delete it. Files do not expire, and downgrading never deletes them.

Other guides