settings.json.
Settings
Storage Scope
Controls where LiteClient stores collections, environments, history, and cookies.Type:
Options:
Default:
stringOptions:
"global" | "workspace"Default:
"global"Options
- global
- workspace
Stores all data in VS Code’s global storage directory. Data is:
- Private: Not stored in your project repository
- Persistent: Available across all workspaces
- User-specific: Each user has their own collections and environments
Recommended for personal API testing and when you don’t want to commit sensitive data to version control.
Storage Files
Regardless of scope, LiteClient stores data in these JSON files:| File | Contents |
|---|---|
collections.json | Collections, folders, and saved requests |
environments.json | Environments and variables (including globals) |
history.json | Request execution history with timestamps |
cookies.json | Serialized cookie jar (per domain) |
settings.json | User preferences and UI state |
Configuring Settings
Using VS Code Settings UI
- Open Settings (
Ctrl+,orCmd+,) - Search for “liteclient”
- Select your preferred storage scope from the dropdown
Using settings.json
Add the configuration directly to your VS Code settings:- User Settings
- Workspace Settings
Configure for all workspaces:Access via: Preferences: Open User Settings (JSON)
Migrating Data
From Global to Workspace
To migrate existing data from global to workspace storage:- Set
liteclient.storageScopeto"workspace" - Run the LiteClient: Migrate Data to Workspace command
- All collections, environments, history, and cookies will be copied to
.liteclient/
The migration copies data rather than moving it. Your global storage data remains intact after migration.
From Workspace to Global
To switch from workspace to global storage:- Set
liteclient.storageScopeto"global" - LiteClient will read from global storage on next launch
- The
.liteclient/folder remains in your workspace but is not used
There is no automatic migration from workspace to global. You’ll need to manually copy data if needed.
Version Control
Workspace Storage
When using workspace storage, you can commit the.liteclient/ folder to Git:
Security Warning: Be careful not to commit sensitive data like API keys, tokens, or cookies. Consider using environment variables for sensitive values and marking them as “secret” type in LiteClient.
Global Storage
Global storage is never committed to version control. It resides in VS Code’s application data directory:- Windows:
%APPDATA%/Code/User/globalStorage/liteclienthq.liteclient/ - macOS:
~/Library/Application Support/Code/User/globalStorage/liteclienthq.liteclient/ - Linux:
~/.config/Code/User/globalStorage/liteclienthq.liteclient/
Best Practices
For Individual Developers
- Use global storage for personal projects and experimentation
- Keep sensitive credentials in global storage to avoid accidental commits
- Use environment variables with “secret” type for API keys
For Teams
- Use workspace storage for shared API collections
- Commit
collections.jsonandenvironments.jsonto Git - Use
.gitignoreto excludehistory.jsonandcookies.json - Document required environment variables in your README
- Use placeholder values for sensitive variables (e.g.,
{{API_KEY}})
For Open Source Projects
- Use workspace storage with example collections
- Provide template environments with placeholder values
- Document all required variables and how to obtain credentials
- Never commit actual API keys or tokens