KamuiDash KamuiDash Docs
EN JA ZH

Storage

Storage is a private file store for uploads and other files shared by connected apps in the same project. Apps use its API; it is separate from a database disk, an app’s temporary disk, and static-site publication.

Create storage

  1. Open the project and choose Storage from the new-resource menu, or Create storage in the empty Storage section.
  2. Enter a name and review the displayed limits and pricing, then select Create storage.
  3. Open the created storage from the project’s Storage list and check that it is available. Overview & settings shows its ID and endpoint.
LimitCurrent specification
Storage per projectUp to 3
Capacity per storage100 GB
Files per storageUp to 100,000
Size per file100 MiB; a single upload supports up to 64 MiB. Larger files require multipart upload.

Capacity is a limit, not a free allowance. At the capacity limit, new uploads are rejected; reads and deletion remain available subject to operation budget and account access.

Connect an application

  1. Open App connections and select Connect an app. Choose an app in the same project.
  2. Choose Read only or Read and write, then connect. You can later change its permission or disconnect it.
  3. Open Code samples, choose Go, Node.js, Python, or Ruby, and copy the code or Copy instructions and code for AI. The sample includes this storage’s endpoint.
  4. Use the sample in backend code. KamuiDash supplies the token file and KAMUI_STORAGE_TOKEN_FILE for a connected app. Read that file on each API call; do not embed its contents in code or expose it to a browser.
PermissionAllowed operations
Read onlyList files, read file contents/metadata, and issue download URLs.
Read and writeRead operations plus upload, overwrite, and delete.

Use the backend samples

The dashboard samples support list, upload, read, url, and delete. Save the selected sample to the indicated filename and run only the operation you need. With no arguments it lists one page of files. Sample upload writes a small text file and overwrites the same key; delete is permanent. The small-file example is not a multipart uploader.

LanguageSample fileList files
Gostorage.gogo run storage.go list
Node.jsstorage.mjsnode storage.mjs list
Pythonstorage.pypython3 storage.py list
Rubystorage.rbruby storage.rb list

Download URLs expire after one hour and may stop working earlier if the file is replaced or deleted. Share them only with intended recipients. Issuing a URL and using it to read a file are separate billable operations.

Local development

  1. Open Local development, enter a token name, choose the needed permission, and select Issue token.
  2. Select Download token file. The token is shown once and expires seven days after issue.
  3. Set KAMUI_STORAGE_TOKEN_FILE to the downloaded file’s absolute path and run the sample from Code samples.
  4. Revoke the token from this screen when no longer needed. Keep the file out of source control and chat; never send it to frontend code.

The environment-variable example below is for macOS/Linux. Run the command for your selected sample language.

export KAMUI_STORAGE_TOKEN_FILE="/absolute/path/to/kamui-storage-token"
chmod 600 "$KAMUI_STORAGE_TOKEN_FILE"

Usage, fees, and the operation budget

Storage has usage-based storage and operation charges, including during the free trial; it has no free storage allowance or fixed base fee. Check current pricing. The monthly operation budget is optional and shared by all storage in the project. Set or change it in Overview & settings; the new value applies only after you save.

  • A limited budget rejects new chargeable operations that exceed the sum of committed operation charges and reserved charges. This includes uploads, reads, metadata requests, API listings, and download-URL issuance.
  • Previously accepted uploads can complete within their reserved budget and validity period. Stored files are not deleted merely because the operation budget is reached; deletion and dashboard file listings remain available.
  • Storage charges are outside the operation budget and continue while files are retained. No budget limit means no automatic stop based on the operation charge amount.
  • Operations can resume after you raise/remove the budget, or after the monthly usage reset at 00:00 JST on the first day of the next month. Review usage before increasing the limit.

Manage and delete files

  1. Open Files to list keys and sizes, filter by filename prefix, refresh, or view the next page.
  2. Select unwanted files and choose Delete selected files. Check the names in the confirmation dialog and follow the deletion progress; acceptance is not completion.
  3. To delete the entire storage, use Overview & settings and enter its exact name in the deletion dialog. This permanently deletes the storage and all its files.

The normal Files screen is for listing and deletion; upload and read through your backend API or its samples. If recovery download is offered after a payment-related suspension, use that screen before deletion and follow the billing notice. Non-payment and an exhausted operation budget are different conditions.

Troubleshooting

Observed responseCheck
401The token’s expiry and authentication setup; in local development, check the configured token-file path.
403 storage_forbiddenThe storage/app connection and its read-only or read/write permission.
402The actual error code, operation budget, and payment status. Do not assume every 402 is a budget issue.
429Request frequency and concurrent transfers. Honor Retry-After when supplied.
Upload rejectedThe reported capacity, file-count, file-size, or upload-mode limit. Use the error’s actual values.

Use the returned status and error code rather than inferring a cause. If you add retries, reuse the same Idempotency-Key for the same write instead of issuing another independent write.

Related guides