diff --git a/src/services/cmds.ts b/src/services/cmds.ts
index 4cc2559d33e71fd113bb4899533bc495bb896954..28619a6a29ca1ed32ddddc745c87edde62ab8998 100644
--- a/src/services/cmds.ts
+++ b/src/services/cmds.ts
@@ -105,3 +105,21 @@ export async function openLogsDir() {
     Notice.error(err?.message || err.toString(), 1500)
   );
 }
+
+/// service mode
+
+export async function startService() {
+  return invoke<void>("start_service");
+}
+
+export async function checkService() {
+  return invoke<any>("check_service");
+}
+
+export async function installService() {
+  return invoke<void>("install_service");
+}
+
+export async function uninstallService() {
+  return invoke<void>("uninstall_service");
+}
diff --git a/src/services/types.ts b/src/services/types.ts
index 9e76a8e663554ecc64d13203a3f90fcff79ffecf..9a38b2dee2347e2711eeb577f10d05544da6968c 100644
--- a/src/services/types.ts
+++ b/src/services/types.ts
@@ -130,6 +130,7 @@ export namespace CmdType {
     traffic_graph?: boolean;
     enable_tun_mode?: boolean;
     enable_auto_launch?: boolean;
+    enable_service_mode?: boolean;
     enable_silent_start?: boolean;
     enable_system_proxy?: boolean;
     enable_proxy_guard?: boolean;