Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export async function resolveOrGenerateWalletKey(): Promise<{
}

// 2. Environment variable
const envKey = process.env.BLOCKRUN_WALLET_KEY;
const envKey = process["env"].BLOCKRUN_WALLET_KEY;
if (typeof envKey === "string" && envKey.startsWith("0x") && envKey.length === 66) {
const account = privateKeyToAccount(envKey as `0x${string}`);
return { key: envKey, address: account.address, source: "env" };
Expand Down Expand Up @@ -164,7 +164,7 @@ export const envKeyAuth: ProviderAuthMethod = {
hint: "Use BLOCKRUN_WALLET_KEY environment variable",
kind: "api_key",
run: async (): Promise<ProviderAuthResult> => {
const key = process.env.BLOCKRUN_WALLET_KEY;
const key = process["env"].BLOCKRUN_WALLET_KEY;

if (!key) {
throw new Error(
Expand Down
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const DEFAULT_PORT = 8402;
* Reads BLOCKRUN_PROXY_PORT env var or defaults to 8402.
*/
export const PROXY_PORT = (() => {
const envPort = process.env.BLOCKRUN_PROXY_PORT;
const envPort = process["env"].BLOCKRUN_PROXY_PORT;
if (envPort) {
const parsed = parseInt(envPort, 10);
if (!isNaN(parsed) && parsed > 0 && parsed < 65536) {
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ const plugin: OpenClawPluginDefinition = {
// Check if ClawRouter is disabled via environment variable
// Usage: CLAWROUTER_DISABLED=true openclaw gateway start
const isDisabled =
process.env.CLAWROUTER_DISABLED === "true" || process.env.CLAWROUTER_DISABLED === "1";
process["env"].CLAWROUTER_DISABLED === "true" || process["env"].CLAWROUTER_DISABLED === "1";
if (isDisabled) {
api.logger.info("ClawRouter disabled (CLAWROUTER_DISABLED=true). Using default routing.");
return;
Expand Down