---
title: Vultr Object Storage
description: Vultr Object Storage via the S3-compatible API. Endpoint derived from the cluster code (ewr1, sjc1, ams1, blr1, ...).
---

## Installation

`@aws-sdk/client-s3`, `@aws-sdk/s3-presigned-post`, and `@aws-sdk/s3-request-presigner` are optional peer dependencies of `files-sdk` - install alongside the SDK so the adapter's imports resolve at runtime.

```package-install
files-sdk @aws-sdk/client-s3 @aws-sdk/s3-presigned-post @aws-sdk/s3-request-presigner
```

`upload` also needs the optional `@aws-sdk/lib-storage` package when it uses `onProgress`, `multipart`, or a `ReadableStream` body of unknown length. It's only loaded then.

## Usage

```ts lineNumbers
import { Files } from "files-sdk";
import { vultr } from "files-sdk/vultr";

const files = new Files({
  adapter: vultr({
    bucket: "uploads",
    region: "ewr1", // or "sjc1", "ams1", "blr1", "del1", "sgp1"
    // accessKeyId / secretAccessKey auto-loaded from
    // VULTR_ACCESS_KEY_ID / VULTR_SECRET_ACCESS_KEY
  }),
});
```

Vultr Object Storage via its S3-compatible API. A thin wrapper around the S3 adapter - endpoint derived from the cluster code (`ewr1`, `sjc1`, `ams1`, `blr1`, `del1`, `sgp1`, giving hosts like `ewr1.vultrobjects.com`), virtual-hosted-style addressing, errors relabelled. Auto-loads from `VULTR_ACCESS_KEY_ID` and `VULTR_SECRET_ACCESS_KEY`. Generate access keys in the Vultr customer portal under Object Storage -> your subscription -> Overview.

## Options

<AutoTypeTable
  path="../../packages/files-sdk/src/vultr/index.ts"
  name="VultrAdapterOptions"
/>

## Compatibility

| Method | Status | Notes |
| --- | :-: | --- |
| `upload` | ✅ |  |
| `download` | ✅ |  |
| `delete` | ✅ |  |
| `list` | ⚠️ | The S3 list API returns no per-object `Content-Type`, so `contentType` is inferred from the key's extension (`application/octet-stream` when unknown). Use `head()` for the stored value. |
| `search` | ✅ |  |
| `head` | ✅ |  |
| `exists` | ✅ |  |
| `copy` | ✅ |  |
| `url` | ✅ |  |
| `signedUploadUrl` | ✅ |  |
