MyClaude Docs
MyClaude Docs

Getting Started

Buyers

Creators

CLI

CLI InstallationCLI AuthenticationCLI Commands ReferenceCLI ConfigurationCLI TroubleshootingMCP Integration

API

Agent Integration

Developers

Security

Legal

CLI

CLI Configuration

Reference for all MyClaude CLI configuration: config.json settings, environment variable overrides, and precedence rules.

ReferenceUpdated 2026-03-25

The MyClaude CLI reads settings from ~/.myclaude/config.json and respects MYCLAUDE_* environment variables with a clear precedence chain.

This reference covers every configurable setting, how to override settings with environment variables, the precedence order, and the config management commands.

Configuration file

The CLI stores its configuration at ~/.myclaude/config.json. This file is created automatically when you run myclaude login and contains both session metadata and user preferences.

File location

PlatformPath
macOS~/.myclaude/config.json
Linux~/.myclaude/config.json
Windows%USERPROFILE%\.myclaude\config.json

The ~/.myclaude/ directory is created with 700 permissions on Unix systems. On Windows, it inherits the user profile directory permissions.

Full schema

{
  "uid": "abc123def456",
  "email": "you@example.com",
  "username": "your-username",
  "displayName": "Your Name",
  "apiKey": "AIzaSy...",
  "registry": "https://myclaude.sh",
  "default_category": "skill",
  "color": true,
  "quiet": false,
  "auto_update_check": true
}

Field reference

FieldTypeDefaultSet byDescription
uidstring--myclaude loginFirebase user ID. Set automatically on login.
emailstring--myclaude loginAccount email address. Set automatically on login.
usernamestring--myclaude loginMyClaude username. Set automatically on login.
displayNamestring--myclaude loginDisplay name from profile. Set automatically on login.
apiKeystring--myclaude loginFirebase public API key. Used for token refresh. Not a secret.
registrystring"https://myclaude.sh"UserAPI endpoint URL. Override to point to a staging or self-hosted instance.
default_categorystring"skill"UserDefault category used by myclaude init when --category is not specified.
colorbooleantrueUserEnable or disable ANSI color codes in terminal output.
quietbooleanfalseUserSuppress all output except errors. Equivalent to passing --quiet on every command.
auto_update_checkbooleantrueUserCheck for newer CLI versions on launch. Prints a notice if an update is available. Does not auto-install.

Fields set by myclaude login (uid, email, username, displayName, apiKey) should not be edited manually. They are overwritten on the next login.

Environment variable overrides

Environment variables override config file settings. All CLI-specific variables use the MYCLAUDE_ prefix.

VariableOverridesTypeDescription
MYCLAUDE_TOKENStored keychain credentialsstringAuthentication token. When set, the CLI skips keychain lookup and uses this token directly. Primary method for CI/CD authentication.
MYCLAUDE_REGISTRYregistry in config.jsonstringAPI endpoint URL. Useful for pointing the CLI at a staging environment without modifying the config file.
MYCLAUDE_NO_COLORcolor in config.jsonanyDisable ANSI colors when set to any non-empty value. Takes effect regardless of value.
NO_COLORcolor in config.jsonanyStandard NO_COLOR convention (see no-color.org). Disables colors when set to any non-empty value. Equivalent to MYCLAUDE_NO_COLOR.
MYCLAUDE_QUIETquiet in config.jsonanySuppress non-error output when set to any non-empty value.

Example: CI/CD environment

export MYCLAUDE_TOKEN="eyJhbGciOiJSUzI1NiJ9..."
export MYCLAUDE_REGISTRY="https://staging.myclaude.sh"
export MYCLAUDE_NO_COLOR=1
export MYCLAUDE_QUIET=1

myclaude publish --dry-run
# (authenticates via MYCLAUDE_TOKEN, targets staging, no colors, minimal output)

Example: disable color for a single command

$ NO_COLOR=1 myclaude search "testing"

Precedence chain

When the same setting is specified in multiple places, the CLI resolves them in this order, from highest to lowest priority:

1. Command-line flags        (--quiet, --no-color, --token)
2. Environment variables     (MYCLAUDE_TOKEN, MYCLAUDE_REGISTRY, NO_COLOR)
3. Config file               (~/.myclaude/config.json)
4. Built-in defaults

A command-line flag always wins. An environment variable overrides the config file. The config file overrides built-in defaults.

Precedence examples

SettingFlag valueEnv var valueConfig valueResolved value
Color output--no-color(not set)trueDisabled (flag wins)
Color output(not passed)NO_COLOR=1trueDisabled (env var wins)
Color output(not passed)(not set)falseDisabled (config wins)
Color output(not passed)(not set)(not set)Enabled (default)
Authentication--token xyzMYCLAUDE_TOKEN=abckeychainUses xyz (flag wins)
Authentication(not passed)MYCLAUDE_TOKEN=abckeychainUses abc (env var wins)
Registry(not passed)MYCLAUDE_REGISTRY=https://staging...https://myclaude.shUses staging URL (env var wins)

Config management commands

The CLI provides subcommands for reading and writing configuration values without editing the JSON file manually.

myclaude config set

Write a configuration value:

$ myclaude config set default_category agent
# Set default_category = "agent"
$ myclaude config set color false
# Set color = false
$ myclaude config set registry https://staging.myclaude.sh
# Set registry = "https://staging.myclaude.sh"

Only user-configurable fields (registry, default_category, color, quiet, auto_update_check) can be set with this command. Attempting to set session fields (uid, email, username, displayName, apiKey) returns an error.

myclaude config get

Read a single configuration value:

$ myclaude config get default_category
# skill
$ myclaude config get registry
# https://myclaude.sh

Returns the resolved value after applying the precedence chain. If an environment variable overrides the config file value, the resolved (effective) value is returned.

myclaude config list

Display all configuration values and their sources:

$ myclaude config list
# uid              abc123def456          (login)
# email            you@example.com       (login)
# username         your-username         (login)
# displayName      Your Name             (login)
# apiKey           AIzaSy...             (login)
# registry         https://myclaude.sh   (default)
# default_category skill                 (default)
# color            true                  (default)
# quiet            false                 (default)
# auto_update_check true                 (default)

When an environment variable overrides a setting, the source column reflects it:

$ MYCLAUDE_NO_COLOR=1 myclaude config list
# ...
# color            false                 (env: MYCLAUDE_NO_COLOR)
# ...

myclaude config reset

Reset a user-configurable field to its default value:

$ myclaude config reset default_category
# Reset default_category to default: "skill"

Per-project configuration

Per-project configuration via a .vaultrc file is planned for a future release. When available, .vaultrc will sit between the config file and built-in defaults in the precedence chain:

1. Command-line flags
2. Environment variables
3. Config file (~/.myclaude/config.json)
4. Project file (.vaultrc)          <-- future
5. Built-in defaults

The .vaultrc file will support the same user-configurable fields as config.json and will be discovered by walking up the directory tree from the current working directory.

Credential storage

Authentication credentials are stored separately from the config file. See CLI Authentication for the full credential storage model. In brief:

CredentialStoragePriority
Refresh tokenOS keychain (service: vault-marketplace)Default
Refresh token~/.myclaude/credentials (chmod 600)Fallback when keychain unavailable
Auth tokenMYCLAUDE_TOKEN environment variableCI/CD override (highest priority)

The config file (config.json) never contains tokens. It contains only the public API key and session metadata needed for display purposes and token refresh.

File permissions

FileUnix permissionsPurpose
~/.myclaude/700 (drwx------)Config directory
~/.myclaude/config.json600 (-rw-------)Configuration
~/.myclaude/credentials600 (-rw-------)Fallback token storage
~/.myclaude/installed.json644 (-rw-r--r--)Local install registry

On Windows, files inherit the user profile permissions. The CLI does not modify Windows ACLs.

Related pages

  • CLI Authentication -- how login, token storage, and refresh work
  • CLI Commands Reference -- complete reference for all 12 commands
  • CLI Troubleshooting -- common configuration and auth issues

CLI Commands Reference

The MyClaude CLI provides 12 commands for discovering, installing, and publishing products.

CLI Troubleshooting

Solutions to common MyClaude CLI issues: installation failures, authentication errors, publishing problems, network issues, and platform-specific fixes.

On this page

Configuration fileFile locationFull schemaField referenceEnvironment variable overridesExample: CI/CD environmentExample: disable color for a single commandPrecedence chainPrecedence examplesConfig management commandsmyclaude config setmyclaude config getmyclaude config listmyclaude config resetPer-project configurationCredential storageFile permissionsRelated pages