Skip to content

SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.

made DATA_PATH optional

Forhad Hosain91fcdbeb0ab2
diff --git a/packages/runtime/.env.example b/packages/runtime/.env.example
index 717d9661..ec21fbba 100644
--- a/packages/runtime/.env.example
+++ b/packages/runtime/.env.example
@@ -5,8 +5,6 @@ LOGTO_SERVER="logto-server"
LOGTO_API_RESOURCE="logto-api-resource"
MIDDLEWARE_API_BASE_URL="middleware-api-base-url"
-DATA_PATH="path/to/store/data"
-
# Optional Environment in development
PORT="5053"
ADMIN_PORT="5054"
@@ -14,6 +12,7 @@ NODE_ENV="development"
BASE_URL="http://localhost:5053"
UI_SERVER="http://localhost:4000"
SESSION_SECRET="session-secret"
+DATA_PATH="path/to/store/data"
# DEFAULT_AGENT_DOMAIN serves as the staging/development wildcard domain (e.g., agentid.staging.smythos.dev) where non-deployed agents are automatically accessible for testing and development purposes.
DEFAULT_AGENT_DOMAIN="localagent.stage.smyth.ai"
diff --git a/packages/runtime/src/core/config.ts b/packages/runtime/src/core/config.ts
index fa0a304e..11948e81 100644
--- a/packages/runtime/src/core/config.ts
+++ b/packages/runtime/src/core/config.ts
@@ -1,6 +1,12 @@
import dotenv from "dotenv";
+import path from "path";
+import { fileURLToPath } from "url";
+
dotenv.config();
+const __filename = fileURLToPath(import.meta.url);
+const __dirname = path.dirname(__filename);
+
const config = {
env: {
PORT: parseInt(process.env.PORT || "5053"),
@@ -29,7 +35,7 @@ const config = {
CODE_SANDBOX_URL: process.env.CODE_SANDBOX_URL || "http://localhost:5055",
- DATA_PATH: process.env.DATA_PATH,
+ DATA_PATH: process.env.DATA_PATH || path.resolve(__dirname, "../../data"),
SMYTHOS_SERVER_TYPE: process.env.SMYTHOS_SERVER_TYPE || "combined",
},