# tinker_cookbook.stores.storage_from_uri

### [**tinker_cookbook.stores.storage_from_uri**](https://github.com/thinking-machines-lab/tinker-cookbook/blob/main/tinker_cookbook/stores/storage.py#L617)( _uri_, ** _kwargs_)

Create a Storage backend from a URI string.

**Supported schemes:**

- /path/to/dir → LocalStorage("/path/to/dir")
- file:///path/to/dir → LocalStorage("/path/to/dir")
- s3://bucket/prefix → FsspecStorage (requires s3fs)
- gs://bucket/prefix → FsspecStorage (requires gcsfs)
- az://container/prefix → FsspecStorage (requires adlfs)

Extra keyword arguments are passed to the fsspec filesystem constructor
(e.g., `anon=True` for public S3 buckets).

This is the recommended way to create a Storage from user config
(e.g., `log_path` in training scripts).

**Parameters:**

- [**uri**](https://github.com/thinking-machines-lab/tinker-cookbook/blob/main/tinker_cookbook/stores/storage.py#L617) ( _str_)
- [**\*\*kwargs**](https://github.com/thinking-machines-lab/tinker-cookbook/blob/main/tinker_cookbook/stores/storage.py#L617) ( _Any_)

**Returns:** _[Storage](https://tinker-docs.thinkingmachines.ai/cookbook/api-reference/stores/storage/)_
