Skip to Content
Documentation

Configuration

Set preferences, select a provider, and choose where NekoStream stores its data.

View and change preferences

nekostream settings show --json
nekostream settings set defaultProvider anime47
nekostream settings set discordRpcEnabled false
nekostream settings set autoPlayNext false

Changes are saved in the active data directory. The interactive menu also exposes these preferences under Cài đặt.

Writable keyDefaultMeaning
defaultProvideranimevietsubProvider used when opening the menu without a provider flag
defaultQuality1080pStored quality preference; use watch --quality or player controls to select available renditions
autoPlayNextfalseOpen the next episode after successful player exit
discordRpcEnabledtrueEnable best-effort Discord presence
debugModefalseEnable player diagnostics
providerDomains.animevietsubUnsetSaved AnimeVietsub origin override
providerDomains.anime47UnsetSaved Anime47 origin override

Boolean values must be true or false. Individual commands default to AnimeVietsub even when defaultProvider is Anime47; supply --provider anime47 for those commands. A saved quality preference does not guarantee a matching stream.

Reset preferences with a confirmation prompt, or explicitly confirm:

nekostream settings reset
nekostream settings reset --yes --json

Resetting settings does not clear history or saved sessions.

Data directory

The default is ~/.nekostream-cli/ on Linux and %USERPROFILE%\.nekostream-cli\ on Windows. It holds settings, local history, encrypted provider sessions, and caches. It is separate from the installed program bundle.

Use the same directory for login and subsequent provider commands:

nekostream --data-dir ./my-neko-data --provider anime47 auth login
nekostream --data-dir ./my-neko-data --provider anime47 auth status --json

--data-dir takes precedence over NEKOSTREAM_DATA_DIR, which takes precedence over the default location. Relative paths are resolved from your current directory.

Provider domains

nekostream domains --json
nekostream --provider anime47 domains --refresh --json

Domain discovery reports known candidates and the selected origin. To use a provider's verified current origin for one invocation, replace PROVIDER_ORIGIN with its HTTPS origin, such as https://provider.example:

nekostream --provider anime47 --base-url "PROVIDER_ORIGIN" search "one piece" --json

The flag is not saved. To persist an override or remove it:

nekostream settings set providerDomains.anime47 "PROVIDER_ORIGIN"
nekostream settings set providerDomains.anime47 ""

A per-command --base-url overrides the saved origin. Without an override, NekoStream uses its domain discovery and cache.

Environment variables

VariablePurpose
NEKOSTREAM_DATA_DIRUser data directory
NEKOSTREAM_CHROMIUMPath to Chrome/Chromium for login and browser fallback
NEKOSTREAM_PLAYER_DIRDirectory containing the matching native player bundle
NEKOSTREAM_PLAYER_PATHExplicit native helper executable; mainly useful with a source build
NEKOSTREAM_CEF_DIRMatching CEF resources when selecting an explicit helper
NO_COLORDisable terminal colors
TERM=dumbUse minimal terminal formatting

--player-dir overrides player environment settings. Otherwise an explicit NEKOSTREAM_PLAYER_PATH is preferred to NEKOSTREAM_PLAYER_DIR, then discovery checks beside the CLI. A supplied invalid bundle path produces an error instead of silently selecting another installation.

Normally the installer selects the matching player automatically. See troubleshooting before changing player paths.

On this page