Skip to content

[FR] Add "Copy Terminal Proxy Commands" for Local SOCKS/HTTP Proxy #2229

@shizetao

Description

@shizetao

Feature description

Background

Hiddify currently provides local proxy addresses such as:

SOCKS5: socks://127.0.0.1:12334
HTTP: http://127.0.0.1:12335

However, users who need to use the proxy in Terminal, SSH sessions, Docker, Git, npm, Python, AI CLI tools (Codex, Claude Code, Gemini CLI, etc.) must manually convert these addresses into environment variable commands.

This is inconvenient and error-prone, especially for users who are not familiar with proxy environment variables.

Suggested Feature

Add a "Copy Terminal Proxy Command" button on the Local Proxy page.

For example, when the SOCKS5 proxy is:

socks://127.0.0.1:12334

One click could copy:

export ALL_PROXY=socks5://127.0.0.1:12334
export http_proxy=socks5://127.0.0.1:12334
export https_proxy=socks5://127.0.0.1:12334

Optionally provide presets for:

macOS / Linux
export ALL_PROXY=socks5://127.0.0.1:12334
export http_proxy=socks5://127.0.0.1:12334
export https_proxy=socks5://127.0.0.1:12334
Windows CMD
set ALL_PROXY=socks5://127.0.0.1:12334
set http_proxy=socks5://127.0.0.1:12334
set https_proxy=socks5://127.0.0.1:12334
Windows PowerShell
$env:ALL_PROXY="socks5://127.0.0.1:12334"
$env:http_proxy="socks5://127.0.0.1:12334"
$env:https_proxy="socks5://127.0.0.1:12334"
Benefits
Easier terminal integration
Better developer experience
Useful for AI CLI tools, Git, Docker, npm, pip, SSH, and other command-line applications
Eliminates manual typing and formatting mistakes
Simple to implement with high usability value

Thanks for considering this feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions