0
Fork 0
mirror of https://github.com/mastra-ai/mastra.git synced 2026-11-17 08:44:46 +00:00
mastra/workspaces/s3
dane-ai-mastra[bot] a5859ee2b9
chore: version packages (alpha) (#30430)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
History 2026-11-16 14:09:31 +01:00
..
src feat(e2b): run commands as another OS user, and choose the owner of S3/GCS mounts (#30433) 2026-11-15 08:51:28 -08:00
.env.example feat(s3): recognize Neon Object Storage endpoints and document integration (#28032) 2026-10-22 14:32:37 -04:00
.gitignore feat: E2B sandbox and S3 filesystem with mount support (COR-380, COR-385, COR-484) (#12605) 2026-02-10 14:07:57 -08:00
CHANGELOG.md chore: version packages (alpha) (#30430) 2026-11-16 14:09:31 +01:00
docker-compose.yml chore(deps): update cgr.dev/chainguard/minio docker digest to 0f9fda7 (#30259) 2026-11-14 09:24:35 -08:00
lint-staged.config.js refactor(lint): replace ESLint with type-aware oxlint (#27476) 2026-10-18 10:38:35 -07:00
package.json chore: version packages (alpha) (#30430) 2026-11-16 14:09:31 +01:00
README.md feat(s3): recognize Neon Object Storage endpoints and document integration (#28032) 2026-10-22 14:32:37 -04:00
tsconfig.build.json feat: E2B sandbox and S3 filesystem with mount support (COR-380, COR-385, COR-484) (#12605) 2026-02-10 14:07:57 -08:00
tsconfig.json chore: migrate package builds to tsdown (#19829) 2026-07-28 12:32:21 +02:00
tsdown.config.ts chore: migrate package builds to tsdown (#19829) 2026-07-28 12:32:21 +02:00
vitest.config.ts feat: E2B sandbox and S3 filesystem with mount support (COR-380, COR-385, COR-484) (#12605) 2026-02-10 14:07:57 -08:00

@mastra/s3

S3-compatible filesystem provider for Mastra workspaces. Works with AWS S3, Cloudflare R2, Neon Object Storage, MinIO, DigitalOcean Spaces, and other S3-compatible storage services.

Installation

npm install @mastra/s3

Usage

import { Agent } from '@mastra/core/agent';
import { Workspace } from '@mastra/core/workspace';
import { S3Filesystem } from '@mastra/s3';

const workspace = new Workspace({
  filesystem: new S3Filesystem({
    bucket: 'my-bucket',
    region: 'us-east-1',
    accessKeyId: process.env.AWS_ACCESS_KEY_ID,
    secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY,
  }),
});

const agent = new Agent({
  name: 'my-agent',
  model: 'anthropic/claude-opus-4-5',
  workspace,
});

Documentation

Changelog

See the package changelog for version history and release notes.

Support

We have an open community Discord. Come and say hello and let us know if you have any questions or need any help getting things running.