Learn how to configure your workspace
The inkeep.config.ts file at the workspace root defines settings for all projects in this workspace. See for where this file should be placed.
import { defineConfig } from "@inkeep/agents-cli/config" ;
import "dotenv/config" ;
export default defineConfig ({
tenantId : "my-company" ,
agentsManageApi : {
url : "http://localhost:3002" ,
apiKey : process . env . MANAGE_API_KEY , // Optional
},
agentsRunApi : {
url : "http://localhost:3003" ,
apiKey : process . env . RUN_API_KEY , // Optional
},
outputDirectory : "./output" ,
}); manageUiUrl?stringType
string | undefined
Default
http : //localhost:3000
outputDirectory?stringOutput directory for generated files
Type
string | undefined
One can override the settings in inkeep.config.ts by setting the following settings in this order (highest to lowest priority):
Command-line flags override all other settings:
# Override API URL
inkeep push --agents-manage-api-url https://api.production.com
# Override config file location
inkeep pull --config /path/to/custom.config.ts Environment variables override config file values:
# Set via environment
export INKEEP_TENANT_ID = staging-tenant
export INKEEP_AGENTS_MANAGE_API_URL = https :// api . staging . com
export INKEEP_AGENTS_RUN_API_URL = https :// run . staging . com
# Now CLI commands use these values
inkeep push Supported Environment Variables:
Variable Config Equivalent Description INKEEP_TENANT_IDtenantIdTenant identifier INKEEP_AGENTS_MANAGE_API_URLagentsManageApiUrlManagement API URL INKEEP_AGENTS_RUN_API_URLagentsRunApiUrlRuntime API URL
Values explicitly set in your inkeep.config.ts:
export default defineConfig ({
tenantId : "my-tenant" ,
agentsManageApi : {
url : "http://localhost:3002" ,
},
agentsRunApi : {
url : "http://localhost:3003" ,
},
});
Default values used when not specified elsewhere:
const defaults = {
agentsManageApiUrl : "http://localhost:3002" ,
agentsRunApiUrl : "http://localhost:3003" ,
};
You can use environment-based logic in your workspace config:
// inkeep.config.ts
import { defineConfig } from "@inkeep/agents-cli/config" ;
const isDevelopment = process . env . NODE_ENV === "development" ;
export default defineConfig ({
tenantId : process . env . TENANT_ID || "default-tenant" ,
agentsManageApiUrl : isDevelopment
? "http://localhost:3002"
: "https://api.production.com" ,
});
For workspaces requiring different configurations:
// inkeep.config.ts
export default defineConfig ({
tenantId : "production-tenant" ,
agentsManageApiUrl : "https://api.production.com" ,
});
// inkeep.dev.config.ts
export default defineConfig ({
tenantId : "dev-tenant" ,
agentsManageApiUrl : "http://localhost:3002" ,
});
# Use development config (specify from any project directory)
inkeep push --config ../inkeep.dev.config.ts
# or with absolute path
inkeep push --config /path/to/workspace/inkeep.dev.config.ts