> ## Documentation Index
> Fetch the complete documentation index at: https://sdk.docs.xano.com/llms.txt
> Use this file to discover all available pages before exploring further.

# xanosdk login

> OAuth sign-in — shared cache, or --local-auth per project.

## Usage

```bash theme={null}
xanosdk login [options]
```

## Flags

| Flag | Description |
| - | - |
| `--local-auth` | Use the project-local ./.xano/auth.json instead of the shared cache |
| `--paste` | Sign in without the loopback callback: open the printed URL in any browser and paste the redirect back. For a host whose 127.0.0.1 the browser cannot reach — remote shell, container, Codespace. Needs a terminal. |
| `--port <n>` | Loopback callback port (default: 47100) |
| `--scope "<list>"` | OAuth scopes to request (default: the built-in set) |
| `--origin <origin>` | Xano OAuth host for `login` and a XANO\_REFRESH\_TOKEN exchange (default: \$XANO\_ORIGIN) |
| `--config <path>` | Explicit credential file (default: \$XANO\_CONFIG) |
| `--force` | Overwrite the cached credential — sign in again even when one is already there |

Global flags are listed in the [CLI overview](/reference/cli).

***

*Generated from @xano/sdk 1.0.9.*


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.