# The token may only read from the remote cache

What "the token may only read from the remote cache" means and how to fix it.

```text
warning: the token may only read from the remote cache, so this run uploads nothing
hint: Use --cache local:rw,remote:r with this token, or ask for a token that may write.
```

## Why it happens

The run is set to write to the remote cache, which it does unless the [cache mode](https://axlers.dev/docs/reference/run.md#caching) says `remote:r`, but the server answered `403` to an upload: the token is one that may only read, such as a `dev:r:…` token of [`axle-server`](https://axlers.dev/docs/reference/remote-cache.md#running-axle-server). The run keeps reading from the remote cache and uploads nothing more.

## How to fix it

On a laptop, read only, so Axle doesn't try to upload:

```sh
axle run build --cache local:rw,remote:r
```

or set `AXLE_CACHE=local:rw,remote:r` in your shell. Where the run should upload, such as in CI, use a token whose access is `rw`.
