Skip to main content

Use SFTP from ChatGPT and Claude.

There is no built-in way to transfer files over SFTP from ChatGPT or Claude, but using qbash tasks you can write a script that talks to your SFTP server and distribute it to any AI chat.

The task.

A Python script on qbash that lists your partner SFTP directory, summarizes each file with a model, and posts results to Slack.

partner-sync.py
path = qbash.inputs.get("remote_path", "/incoming")

files = qbash.integrations.sftp.list_files(path)

for f in files:
    data = qbash.integrations.sftp.read_chunk(
        f["path"], start_row=0, num_rows=1000,
    )
    summary = qbash.ai.run_prompt(
        slug="summarize-partner-data",
        variables={"filename": f["name"], "rows": data},
    )
    qbash.integrations.slack.create_message(
        "#partner-data",
        text=f"{f['name']}: {summary['brief']}",
    )

qbash.output({"files_processed": len(files)})

    qbash Tasks.

    A Task is an AI automation written in Python, hosted on a managed runtime. A developer writes the script; anyone runs it from a form. Integrations, model calls, version control, and logging are built in.

    Model and provider agnostic.

    • Anthropic
    • OpenAI
    • Gemini
    • xAI
    • OpenRouter
    • Amazon
    • Perplexity
    • MoonshotAI
    • Meta
    • Qwen

    Running it from ChatGPT.

    Connect qbash as an MCP server in ChatGPT, Claude Code, or Cursor. MCP lets your chat call tools you build. Someone says "pull the latest files from /incoming and summarize them" and the task runs.

      Questions

      Can ChatGPT connect to an SFTP server directly?

      No. ChatGPT has no built-in SFTP support. The connection runs as a qbash task, and ChatGPT calls it via MCP.

      What is MCP?

      Model Context Protocol. A standard that lets AI chat tools call external tools during a conversation. Connect qbash as an MCP server and your shared tasks show up in ChatGPT, Claude Code, or Cursor.

      Do SFTP credentials go through ChatGPT?

      No. Credentials are stored in qbash and never reach the chat. The model has no access to connection details, and the person running the task never sees them.

      How large a file can the task handle?

      The SFTP integration streams files up to 5 GB without loading them into memory. If a transfer fails partway through, the next attempt starts where it stopped.

      Does the file data go through the model?

      Only if the task code sends it to a model call. The SFTP transfer itself is a direct server-side connection.

      Can I use this from Claude or Cursor too?

      Yes. Any MCP-compatible client works.

      Competitor details reviewed . Vendors change plans and features without notice, so check theirs before deciding.

      Ship your first task.

      Connect your SFTP server and distribute the task to your AI chat.