Configuration and profiles
Store CLI defaults, switch profiles, and link directories to workspaces.
Config
Manage configuration values such as the default project and workspace. These keys are valid:
- apiKey
- The stored credential. Set it with pf auth login instead of pf config set so the key stays out of shell history.
- defaultWorkspace
- The workspace slug commands use when you pass no --workspace. Global to the profile.
- defaultProject
- The project commands use when you pass no --project. Can be set per workspace with --workspace.
- recordUndo
- Set to true to save each edit's previous state so pf undo can restore it. This costs one extra request per edit, so it is off by default. Global to the profile.
- client
- Labels which tool made your API writes, so activity can be attributed to it. Accepted values are codex, claude, grok, cursor, gemini, openai, and cli. The default is cli. The PFEED_CLIENT and PROJECT_FEED_CLIENT environment variables override it. Global to the profile.
pf config set <key> <value>Set apiKey, defaultWorkspace, defaultProject, client, or recordUndo in the selected profile.
Options
--workspacestringSet a workspace-specific apiKey or defaultProject
Example
pf config set defaultProject abc123
pf config set defaultWorkspace my-team
pf config set client claudepf config get <key>Get a config value
Options
--workspacestringResolve a workspace-specific override
--sourcebooleanShow where the resolved value came from
Example
pf config get defaultProject
pf config get apiKey --workspace studio --sourcepf config listShow all config values
Options
--workspacestringInclude values resolved for one workspace
Example
pf config list
pf config list --profile work --workspace studiopf config pathShow the config file location
Example
pf config pathRun pf config path for the exact location. Defaults: ~/.config/project-feed/config.json on Linux (or $XDG_CONFIG_HOME/project-feed/config.json), ~/Library/Preferences/project-feed/config.json on macOS, and %APPDATA%/project-feed/Config/config.json on Windows.
Profiles
Create multiple config profiles for different workspaces or accounts. Use --profile on any command to use a specific profile for that invocation.
pf config profile create <name>Create a new config profile
Example
pf config profile create workpf config profile listList all config profiles
alias: pf config profile ls
Example
pf config profile listpf config profile use <name>Switch to a config profile
Example
pf config profile use work
pf config profile use default # switch backpf config profile delete <name>Delete a config profile. Deleting the active profile switches to another profile.
alias: pf config profile rm
Options
--confirmbooleanSkip the confirmation prompt shown when you delete the active profile in a terminal
Example
pf config profile delete work
pf config profile delete work --confirmExample workflow
pf config profile create work
pf config profile use work
pf auth login
pf config set defaultWorkspace my-company
pf config profile use default
pf projects list --profile workDirectory linking
Link a directory to a project so you do not have to pass --project every time. Linking creates a .pf/config.json file in the current directory. Commands such as pf tasks list then default to that project.
pf link [project]Link the current directory to a project. Creates .pf/config.json so you can omit --project. The link also stores the workspace when you pass --workspace or the key can reach only one workspace.
Example
pf link my-project # by slug
pf link abc123 # by ID
pf --workspace studio link my-projectpf unlinkRemove the project link from the current directory
Example
pf unlinkCommit .pf/config.json only when the repository should share the workspace and project selection. The link stores context, not an API key. Use explicit flags in scripts that must not inherit a developer directory link.
Fix configuration problems
- A command targets the wrong workspace
- Check --workspace, PROJECT_FEED_WORKSPACE, .pf/config.json, and defaultWorkspace in that order. Use pf workspace current to confirm the resolved slug.
- A command targets the wrong project
- Check --project, PROJECT_FEED_PROJECT, the directory link, and defaultProject. Run pf unlink when the current directory should not supply project context.
- A profile was deleted
- The CLI switches away from a deleted active profile. List the remaining profiles, select the intended one, and authenticate it before running another write command.