Are you an LLM? You can read better optimized documentation at /en\tutorial\getting-started.md for this page in Markdown format
Getting Started
Read How Clash Works before editing a profile.
Configuration files
Clash normally reads a YAML file from $HOME/.config/clash. Use -d to choose a configuration directory or -f to choose a specific file. Clash Mi can also import a subscription URL through its interface.
YAML syntax
Use spaces for indentation, not tabs. Quote values containing special YAML characters. Keep credentials and subscription URLs private.
IPv6 addresses
Put brackets around an IPv6 literal when a port follows it, for example [::1]:7890.
DNS wildcard matching
Host and DNS rules can use wildcard patterns. A specific hostname takes priority over a wildcard. For example, foo.example.com is more specific than *.example.com; +.example.com also matches the root domain. See DNS settings.
