Skip to content

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

  • --workspacestring

    Set a workspace-specific apiKey or defaultProject

Example

Shell
pf config set defaultProject abc123
pf config set defaultWorkspace my-team
pf config set client claude
pf config get <key>Get a config value

Options

  • --workspacestring

    Resolve a workspace-specific override

  • --sourceboolean

    Show where the resolved value came from

Example

Shell
pf config get defaultProject
pf config get apiKey --workspace studio --source
pf config listShow all config values

Options

  • --workspacestring

    Include values resolved for one workspace

Example

Shell
pf config list
pf config list --profile work --workspace studio
pf config pathShow the config file location

Example

Shell
pf config path

Run 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

Shell
pf config profile create work
pf config profile listList all config profiles

alias: pf config profile ls

Example

Shell
pf config profile list
pf config profile use <name>Switch to a config profile

Example

Shell
pf config profile use work
pf config profile use default    # switch back
pf config profile delete <name>Delete a config profile. Deleting the active profile switches to another profile.

alias: pf config profile rm

Options

  • --confirmboolean

    Skip the confirmation prompt shown when you delete the active profile in a terminal

Example

Shell
pf config profile delete work
pf config profile delete work --confirm

Example workflow

Shell
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 work

Directory 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

Shell
pf link my-project         # by slug
pf link abc123             # by ID
pf --workspace studio link my-project
pf unlinkRemove the project link from the current directory

Example

Shell
pf unlink

Commit .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.

Next steps

Image preview
100%