---
title: SeaweedFS
icon: /images/seaweedfs-logo.svg
description: Set up SeaweedFS credentials for the SeaweedFS resource.
---

## Credentials

SeaweedFS serves an S3-compatible gateway (the `weed s3` command, default port
`8333`). Access keys are defined in the gateway's S3 config (`-s3.config`), or
the gateway can run without authentication for local development.

### 1. Get an access key

1. Start the S3 gateway, e.g. `weed server -s3` or `weed s3 -filer=localhost:8888`
1. If you configured `-s3.config`, copy an identity's **accessKey** and **secretKey**
1. Note your gateway **endpoint** (e.g. `http://localhost:8333`) and **bucket** name

SeaweedFS uses path-style addressing, so the `endpoint_url` is required.

### 2. Set environment variables

```bash
# .env.development
SEAWEEDFS_BUCKET=my-bucket
SEAWEEDFS_ENDPOINT=http://localhost:8333
SEAWEEDFS_ACCESS_KEY=...
SEAWEEDFS_SECRET_KEY=...
```

<Tip>
Blaxel Agent Drive is backed by SeaweedFS. Use the drive's `s3Url` as the
endpoint and a drive access token's credentials to mount it as a SeaweedFS
resource.
</Tip>

For Python configuration, see the [SeaweedFS resource](/python/resource/seaweedfs) docs.
