Certainly! Here's the translated text in English:
NekoRay / NekoBox for PC Configuration
Window Interface Usage
As shown in the image:
- Ctrl+F to enter search, Esc to exit.
- Hold Ctrl to select multiple nodes at once. Hold Shift to select all nodes between the current and selected node.
Other shortcuts are marked in the right-click menu.
NekoBox
sing-box GUI computer client, currently included in the nekoray program.
Which core should I choose?
- Xray is widely used with good compatibility.
- sing-box supports more new protocols and, in some cases, offers better performance.
GUI Switching
Switch the core in Basic Settings - Core. Significant changes occur before and after switching, so frequent switching is not recommended.
If a server becomes unusable after switching, it is recommended to delete and manually add it back.
NekoBox Usage Notes
- Simple routing is written in the traditional V2ray format, like geoip:cn domain:google.com. NekoBox will automatically translate these rules into sing-box rules.
- Custom JSON configurations (routing, outbound, etc.) should be written in sing-box format.
- Beginning with version 2.27, Hysteria GUI configuration will use the sing-box core (if the configuration type supports it).
Clash API / sing-box Dashboard Instructions
Feature introduction: Allows viewing of traffic and connection information. Web implementation is optional and has a visually appealing interface.
Usage is similar to the mobile NekoBox sing-box dashboard but with the following differences:
- Does not include a built-in panel; requires manual download, extraction, or online use
- Does not have a selector function and cannot display all nodes
Enable Method:
- In NekoBox Basic Settings - Core - Core Options, set Enable Clash API
- Start the proxy
- Extract the Clash panel to nekoray/config/dashboard
- Open http://127.0.0.1:9090 in a browser
- Alternatively, use it online directly (skip steps 3 and 4), such as using Yacd-meta: http://yacd.metacubex.one
Import / Export / Subscription
Supported formats:
- "Clash format" usually includes traffic information, and this project supports parsing its nodes (recommended)
- "Clash Meta format" includes VLESS & Hysteria (supported from NekoBox 2.26+, recommended)
- "V2rayN format" generally does not include traffic information, but this project supports parsing
- "Shadowsocks format" supported in this project
- Some common sharing links and their Base64 encoded formats
Unsupported formats:
- "Some proprietary formats of certain Apple applications"
- "SSR format"
- "SIP008/OOCv1"
- Various less commonly used/non-standard formats
The Neko format is an internal storage format for the program. It contains the most complete information but does not guarantee cross-version compatibility. Links are in the form of nekoray://xxxxx
VPN / TUN Settings
(1.1+) The VPN / TUN mode can proxy the entire system's traffic, suitable for cases where some software does not comply with the proxy.
Currently supports automatic VPN configuration on Windows / Linux (including tun interface and routing rules, etc.)
- Use IP CIDR and process names, formatted like 10.0.0.0/8 Telegram.exe, one per line.
- In TUN mode, it is recommended to enable "Traffic Detection" and set it to "Use Detection Results for Routing," which helps match domain name rules.
- TUN mode can enable "FakeDNS" to speed up DNS queries
- On Windows, TUN mode may occasionally fail to start due to upstream issues. If repeated failures occur, try restarting and cleaning up unnecessary network interfaces before trying again.
- (Only in external mode) The program will read the configuration template config/vpn/sing-box-vpn.json (if this file exists, otherwise, the default template is used) to generate sing-box settings. You may refer to the default template for modifications.
Internal TUN
Disable Internal TUN (External mode): When starting TUN, start nekobox_core to perform "virtual network card to socks function." NekoRay can only use this mode.
Enable Internal TUN (Built-in mode): No need to start an additional nekobox_core, just one core process. The virtual network card directly serves as inbound, without needing to convert to socks, improving TUN efficiency. NekoBox uses this mode by default.
Hide Console: In external mode, hide the Windows console window.
Whitelist Mode
Whether using a blacklist (default proxy, direct connection for listed items) or whitelist (default direct connection, proxy for listed items), your traffic will be processed by nekobox_core (sing-tun). This is not equivalent to a "process mode" of some software.
Basic Settings
URL Testing
Supports HTTP or HTTPS protocol
Consistent with Matsuri, if it starts with true, it indicates testing real RTT delay; otherwise, it tests handshake delay.
Custom Inbound
- Xray inbound syntax
- sing-box inbound syntax
Example (Xray dokodemo-door)
{
"inbounds": [
{
"listen": "127.0.0.1",
"port": 14514,
"protocol": "dokodemo-door",
"settings": {
"address": "www.google.com",
"followRedirect": false,
"network": "tcp",
"port": 443,
"timeout": 0
},
"tag": "map-www.google.com-443-to-14514"
}
]
}
Resource File Path
Allows setting the Xray / sing-box resource folder. Convenient for using additional rule files, and for automatic updates and management of geo resource files (such as using v2rayN, package manager, or upgrade script).
Routing Settings
Simple Routing
- Built-in Global Bypass LAN and China two rules
- Lines starting with # are not effective
- Does not support multi-node shunting, load balancing, or similar usage; if required, please use other software or find other solutions.
- Simple routing matching order is block -> remote -> direct
- Custom routing order is Customized ( Global ) -> Customized -> Simple Routing
DNS
Domain Policy
If you need "accurate domain shunting" (encountering niche domains not included in geosite, and parsing into IP for re-matching), please enable the IPIfNonMatch domain policy.
Currently, this shunting mode is only available in the Xray core; enabling it may increase latency.
Remote DNS
- Only used in TUN Mode or when the "Inbound Domain Policy" is enabled. Other methods (such as system proxy) will send the domain as-is to the server.
- Enable FakeDNS to avoid parsing in TUN Mode and directly send domains to the server.
Direct DNS
Direct DNS is used to resolve server addresses and bypass domain names.
To check if the current Direct DNS is available:
- Set loglevel to debug, and disable TUN and other features that cause interfering logs.
- Start a configuration with a "server address as a domain."
- Click on the lower-left corner to test the latency.
- If there's latency, both the current node and Direct DNS are available.
- If the test fails, but the log shows the IP of the domain, Direct DNS is available, but the node is not.
- If the log does not show the IP of the domain, Direct DNS is not available.
If you encounter DNS issues leading to an inability to go online, try:
- Change Direct DNS to an available one, such as localhost (local DNS) / https://223.5.5.5/dns-query / 223.5.5.5
- Adjust core options related to DNS settings
Custom Routing Rules
Refer to the Xray routing syntax or sing-box routing syntax for routing rule syntax.
Example of custom routing (Xray block QUIC)
{
"rules": [
{
"network": "udp",
"outboundTag": "block",
"port": "443",
"type": "field"
}
]
}
Outbound / Server
Generally, one server configuration displayed on the GUI corresponds to one outbound (Outbound Object) on the backend.
Custom Outbound
(2.1+) By writing outbound JSON, you can use wireguard, ssh, shadowtls in sing-box, and mKCP in Xray.
- Xray outbound syntax
- sing-box outbound syntax
Note
Fill in an Outbound Object, not the entire configuration file. Simply copying an existing config.json is incorrect.
Example: Using a ShadowTLS server in NekoBox.
- Create a new custom outbound (Config 1)
{
"type": "shadowtls",
"tag": "shadowtls-out",
"server": "127.0.0.1", // your server address
"server_port": 4443, // your server port
"tls": {
"enabled": true,
"server_name": "microsoft.com" // camouflage domain
}
}
-
Create a new Shadowsocks outbound (Config 2)
-
Form a chain-proxy in the order of Config 1 Config 2
Custom Outbound JSON Configuration
JSON objects will be merged into the Outbound Object, see examples below.
Example: Creating a new socks server in NekoBox, fill in the server address port, and fill in custom JSON configuration (Config 1), the actual running outbound is wireguard (Config 2)
// Config 1
{
"type": "wireguard",
"system_interface": false,
"interface_name": "wg0",
"local_address": [
"10.0.0.2/32"
],
"private_key": "YNXtAzepDqRv9H52osJVDQnznT5AM11eCK3ESpwSt04=",
"peer_public_key": "Z1XXLsKYkYxuiYjJIkRvtIKFepCYHTgON+GwPq7SOV4=",
"pre_shared_key": "31aIhAPwktDGpH4JDhA8GNvjFXEf/a6+UaQRyOAiyfM=",
"mtu": 1408
}
// Config 2
{
"domain_strategy": "",
"interface_name": "wg0",
"local_address": [
"10.0.0.2/32"
],
"mtu": 1408,
"peer_public_key": "Z1XXLsKYkYxuiYjJIkRvtIKFepCYHTgON+GwPq7SOV4=",
"pre_shared_key": "31aIhAPwktDGpH4JDhA8GNvjFXEf/a6+UaQRyOAiyfM=",
"private_key": "YNXtAzepDqRv9H52osJVDQnznT5AM11eCK3ESpwSt04=",
"server": "server address",
"server_port": 12345,
"system_interface": false,
"tag": "proxy",
"type": "wireguard"
}
Custom Configuration JSON Configuration
The JSON is the same as above but is merged into the Configuration Object.
Example: sing-box NTP
{
"ntp": {
// ......
}
}
Merge Result:
{
"ntp": {
// your input
},
"inbounds": [
// generated by GUI
],
"outbounds": [
// generated by GUI
],
// generated by GUI ...
}
Chain Proxy
Right-click -> manually input configuration -> select type as "Chain Proxy."
Click "Choose Configuration" to start selecting the server you need. Press enter or double-click to use this server, Esc to exit.
Click the "Swap" button to change servers, click the "Trash" button to delete servers.
With the chain proxy, traffic will be forwarded from top to bottom. The first server is the traffic entry, and the last server is the traffic exit.
Note
When using ShadowTLS, if using the original ShadowTLS client, chain proxy connections are not supported. Please operate a local ShadowTLS client and change the ShadowTLS carrier protocol target address to 127.0.0.1:{ShadowTLS local port}.
Hook.js
(2.8+) Allows the use of JavaScript to externally generate or modify certain configurations, oriented towards advanced users. For details, refer to the technical documentation.
Run Flags
https://github.com/MatsuriDayo/nekoray/blob/main/docs/RunFlags.md