[BUG] Scheduled routine (CCR) sandbox blocks outbound HTTPS to my own deployed domain

Status Open
Reported on v2.1.228
Maintainer reply None cached
Activity 0 comments · opened Sep 1, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Scheduled routine(cron trigger)で動くCCRサンドボックス環境から、自分のプロジェクトの本番サイト(Vercelにデプロイ済みの独自ドメイン)へcurlでHTTPS接続しようとすると、組織のエグレスポリシーによって毎回拒否されます。GitHubへのpush/pullは問題なく動作するため、GitHub関連の許可リストは機能していますが、それ以外の任意の外部ドメイン(この場合は自分のNext.jsサイトのAPIエンドポイント)へは接続できません。

What Should Happen?

Scheduled routine(CCR)が、ユーザー自身が所有・管理していることが明確なドメイン(このリポジトリのVercelデプロイ先など)へ、外部APIとしてHTTPSリクエストを送れるようにしてほしい。または、Environment設定画面などからエグレス許可リストを自分で編集できるようにしてほしい。

Error Messages/Logs

curl: (56) [agent-proxy] While this command ran, 2 connections through the agent proxy failed:
  - big-happiness.com:443 — connect_rejected (the egress proxy denied the CONNECT (organization policy) or could not reach the destination)

Agent proxy status check:
$ curl -sS http://127.0.0.1:32959/__agentproxy/status
{
  "enabled": true,
  "port": 32959,
  "noProxy": "localhost,127.0.0.1,::1,127.0.0.0/8,0.0.0.0/8,::,169.254.0.0/16,api.anthropic.com,...,registry.npmjs.org,jsr.io,npm.jsr.io,pypi.org,files.pythonhosted.org,index.crates.io,proxy.golan..."
}
(big-happiness.com is not in this allowlist)

Steps to Reproduce

  1. Environment ID env_01KVGSseWA1FH117LEiHBMUu 上でCCRのscheduled routine(trig_01FKy4haovBHeynLLJjnqzeG、毎週日曜9:00 JST実行)を実行する
  2. サンドボックス内から curl https://big-happiness.com/api/... のように、自分のプロジェクトの本番APIエンドポイント(Vercelにデプロイ済みの独自ドメイン)へPOST/GETリクエストを送る
  3. 上記の connect_rejected エラーで失敗する(同じセッション内での git push は正常に成功する)

Claude Model

None

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.228 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

This bug occurs specifically in a scheduled cloud routine (CCR / Claude Code Remote), not in the local CLI session. Environment ID: env_01KVGSseWA1FH117LEiHBMUu. Routine ID: trig_01FKy4haovBHeynLLJjnqzeG (weekly, Sunday 9am JST). The blocked domain (big-happiness.com) is deployed on Vercel and fully owned/managed by the account owner — this isn't an arbitrary third-party domain.

View original on GitHub ↗