Skip to content

feat(core): add downloadPath config for custom file download location#2411

Closed
SamarthAP wants to merge 1 commit into
ComposioHQ:nextfrom
kairos-computer:pr/download-path
Closed

feat(core): add downloadPath config for custom file download location#2411
SamarthAP wants to merge 1 commit into
ComposioHQ:nextfrom
kairos-computer:pr/download-path

Conversation

@SamarthAP
Copy link
Copy Markdown
Contributor

Summary

This PR adds a downloadPath configuration option to the Composio SDK, allowing users to specify a custom directory for downloaded files instead of the default $HOME/.composio/temp_files/ location.

Use Case

When running Composio in isolated environments (VMs, containers, sandboxes), the default download path may not be accessible or appropriate. This feature allows specifying a custom path that works for the specific deployment environment.

Changes

  • Added downloadPath option to ComposioConfig interface
  • Updated fileUtils.ts to accept custom download paths via saveFile() and downloadFileFromS3()
  • Updated FileToolModifier.ts to pass through the custom download path
  • Updated Tools.ts to propagate downloadPath to FileToolModifier

Usage

const composio = new Composio({
  apiKey: "your-api-key",
  downloadPath: "/custom/path/for/downloads"
});

Test Plan

  • Verify default behavior unchanged when downloadPath not specified
  • Verify files download to custom path when downloadPath is specified
  • Verify path creation when custom directory doesn't exist

Add `downloadPath` option to ComposioConfig to allow specifying a custom
directory for downloaded files instead of the default `$HOME/.composio/temp_files/`.

This is useful for isolated environments (sandboxed VMs, containers) where
files need to be downloaded to a specific location.

Changes:
- Add `downloadPath` to ComposioConfig type
- Update `saveFile()` to accept custom directory via options object
- Update `downloadFileFromS3()` to accept and pass through downloadPath
- Update FileToolModifier to store and use downloadPath
- Update Tools class to pass downloadPath to FileToolModifier
@SamarthAP SamarthAP requested a review from haxzie as a code owner January 17, 2026 23:27
@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 17, 2026

@SamarthAP is attempting to deploy a commit to the Composio Team on Vercel.

A member of the Team first needs to authorize it.

@haxzie haxzie closed this Feb 20, 2026
@haxzie
Copy link
Copy Markdown
Contributor

haxzie commented Feb 20, 2026

Thanks for the PR. Closing this for now, please start with an Issue before submiting a PR 🙌🏽

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants