Skip to content

Commit

Permalink
Add windows support for Claude config,json
Browse files Browse the repository at this point in the history
  • Loading branch information
michaellatman committed Nov 27, 2024
1 parent 4daf843 commit 1c48ee6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ export interface ClaudeConfig {
}

export function getConfigPath(): string {
if (process.platform === 'win32') {
return path.join(process.env.APPDATA || '', 'Claude', 'config.json');
}

const configDir = path.join(os.homedir(), 'Library', 'Application Support', 'Claude');
return path.join(configDir, 'claude_desktop_config.json');
}
Expand Down

0 comments on commit 1c48ee6

Please sign in to comment.