<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Coder Legion - Recent posts tagged amazonbedrock</title>
<link>https://coderlegion.com/tag/amazonbedrock</link>
<description>Powered by Question2Answer</description>
<item>
<title>Remote Control for API-Based Claude Code: Approve Bedrock, Vertex &amp; Foundry Sessions From Your Phone</title>
<link>https://coderlegion.com/29732/remote-control-based-claude-code-approve-bedrock-vertex-foundry-sessions-from-your-phone</link>
<description>&lt;h4 id=&quot;claude-code-s-remote-control-needs-a-claude-subscription-login-so-api-provider-sessions-are-stuck-in-the-terminal-here-s-how-i-gave-them-one-back-with-hooks-a-file-queue-and-a-single-python-file&quot;&gt;Claude Code’s Remote Control needs a Claude subscription login, so API-provider sessions are stuck in the terminal — here’s how I gave them one back with hooks, a file queue and a single Python file&lt;/h4&gt;
&lt;p&gt;&lt;img src=&quot;https://cdn-images-1.medium.com/max/1024/1*9GYHu6TA976JUKL5DET2Ng.jpeg&quot; alt=&quot;ccBridger: Remote Control for API-based Claude Code sessions (Bedrock, Vertex, Foundry)&quot;&gt;&lt;br&gt;
&lt;em&gt;ccBridger: Remote Control for API-based Claude Code sessions (Bedrock, Vertex, Foundry)&lt;/em&gt;&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;TL;DR — Claude Code’s Remote Control needs a Claude subscription login. Sessions that run through an API provider — AWS Bedrock, Google Vertex AI, Microsoft Foundry — don’t get it, so a single permission prompt can stall an hour of work while you are in a meeting.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;strong&gt;ccBridger&lt;/strong&gt; is a small open-source bridge: hooks record what the session needs, a tiny helper session shows it in the Claude mobile app as a native prompt, and your tap goes back to the terminal.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;&lt;p&gt;No server, no open ports, no additional application, standard library only.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;&lt;p&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/fxerkan/ccbridger&quot;&gt;github.com/fxerkan/ccbridger&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h5 id=&quot;the-problem&quot;&gt;The problem&lt;/h5&gt;
&lt;p&gt;A lot of companies run Claude Code through their cloud provider instead of a Claude subscription: &lt;strong&gt;AWS Bedrock, Google Vertex AI&lt;/strong&gt; or &lt;strong&gt;Microsoft Foundry&lt;/strong&gt;. The reasons are sensible: billing lands on the cloud invoice, data stays inside the account, access goes through the provider’s own identity system. I work that way on two client projects, both on Bedrock.&lt;/p&gt;
&lt;p&gt;What you give up is Remote Control. With a subscription login you can open the Claude app on your phone, see the session that is running on your laptop, answer its questions and keep it moving. With an &lt;strong&gt;API provider that door is closed&lt;/strong&gt;. The session lives in the terminal tab where you started it, and nowhere else.&lt;/p&gt;
&lt;p&gt;That sounds like a small inconvenience until you look at how agent work actually goes:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;You start a long task — a migration, a refactor, an infrastructure change — and go to a meeting.&lt;/li&gt;
&lt;li&gt;Eight minutes in, the agent wants to run a command it isn’t allowed to run on its own. It asks. Nobody answers.&lt;/li&gt;
&lt;li&gt;You come back fifty minutes later to a prompt that says “Do you want to proceed?” and an agent that has done nothing since.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The other failure mode is worse. To avoid the stall, people start sessions with &lt;strong&gt;--dangerously-skip-permissions&lt;/strong&gt;. Now nothing waits for you — including the things that should.&lt;/p&gt;
&lt;p&gt;And it isn’t only permissions. Agents ask real questions too: “The upgrade can’t be rolled back. Test workspace first, or straight to prod?” That is exactly the decision you want to make yourself, and exactly the one that sits unanswered while you are away.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://cdn-images-1.medium.com/max/1024/1*5IsYX5dbdiQ0astoSmLi-Q.png&quot; alt=&quot;The same prompt, two outcomes: without the bridge it waits at an empty desk for 48 minutes; with ccBridger the answer costs ten seconds from your phone&quot;&gt;&lt;br&gt;
&lt;em&gt;The same prompt, two outcomes: without the bridge it waits at an empty desk for 48 minutes; with ccBridger the answer costs ten seconds from your phone&lt;/em&gt;&lt;/p&gt;
&lt;h5 id=&quot;an-analogy-before-the-tech&quot;&gt;An analogy before the tech&lt;/h5&gt;
&lt;p&gt;Picture a contractor renovating your kitchen while you are at work. They are good and fast, but they have one rule: before knocking down a wall, they ask. If they can only ask by knocking on your study door, the work stops the moment you leave the house. Give them your phone number and the same rule costs you ten seconds instead of an afternoon.&lt;/p&gt;
&lt;p&gt;ccBridger is the phone number. The rule — ask before doing something that matters — stays exactly as it was.&lt;/p&gt;
&lt;h5 id=&quot;why-the-obvious-answers-don-t-fit&quot;&gt;Why the obvious answers don’t fit&lt;/h5&gt;
&lt;p&gt;&lt;strong&gt;“Just SSH in and attach to tmux.”&lt;/strong&gt; Works, on a laptop keyboard. On a phone, typing into a terminal UI to press 1 is miserable, and you only find out there is something to answer if you go and look.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;“Build a web dashboard.”&lt;/strong&gt; Now there is a server to run, a port to expose, authentication to get right, and a new place where your prompts and commands live.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;“Wrap the CLI.”&lt;/strong&gt; A wrapper has to sit between you and the terminal all the time, and it changes how you start every session.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;“Skip permissions.”&lt;/strong&gt; See above.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What I wanted was narrower:&lt;/strong&gt;&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;Keep working exactly as before. If I’m at the keyboard, nothing changes. If I’m not, the question finds me — in an app I already have, on an account I already own — and my answer goes back. Nothing to host.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h5 id=&quot;the-idea-borrow-the-remote-control-you-already-have&quot;&gt;The idea: borrow the Remote Control you already have&lt;/h5&gt;
&lt;p&gt;Remote Control doesn’t work for the API-based session. But it works fine for a different session on the same machine that runs on my own Claude login. So the bridge doesn’t try to remote-control that session at all. It starts a tiny second session whose only job is to ask me a question, and lets Remote Control carry that question to my phone.&lt;/p&gt;
&lt;p&gt;Three pieces make that work.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://cdn-images-1.medium.com/max/1024/1*V-W6HWDcspYOHeyrZ3OuZw.png&quot; alt=&quot;ccBridger architecture: a permission request leaves the API-based session through hooks, lands in a plain-file queue, and after 15 seconds a relay session running on your own Claude login carries it to the Claude mobile app; your tap maps back to a decision file and unblocks the terminal&quot;&gt;&lt;br&gt;
&lt;em&gt;ccBridger architecture: a permission request leaves the API-based session through hooks, lands in a plain-file queue, and after 15 seconds a relay session running on your own Claude login carries it to the Claude mobile app; your tap maps back to a decision file and unblocks the terminal&lt;/em&gt;&lt;/p&gt;
&lt;h5 id=&quot;1-hooks-on-the-api-based-session&quot;&gt;1. Hooks on the API-based session&lt;/h5&gt;
&lt;p&gt;Claude Code runs hooks — shell commands — at defined points.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ccb install&lt;/strong&gt; adds five of them:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;PermissionRequest&lt;/strong&gt;  — Writes the request (tool, input) to a file, then waits for a decision file. The terminal prompt stays live the whole time.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Stop, SessionStart, UserPromptSubmit, Notification&lt;/strong&gt;  — Keep one background waiter per session alive.&lt;/p&gt;
&lt;p&gt;The decision goes back as the hook’s JSON output:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-json&quot;&gt;{&quot;hookSpecificOutput&quot;: {&quot;hookEventName&quot;: &quot;PermissionRequest&quot;,
                        &quot;decision&quot;: {&quot;behavior&quot;: &quot;allow&quot;}}}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The waiter is how a message reaches an idle session. Those four hooks are registered with &lt;strong&gt;asyncRewake&lt;/strong&gt; : they run in the background, and when one exits with code 2, Claude Code wakes the session and hands it the hook’s stderr. So the waiter polls an inbox file; when a message lands, it prints the message and exits 2. The idle session wakes up and treats it as something the user said.&lt;/p&gt;
&lt;p&gt;Four hooks for one waiter looks redundant. It isn’t: a turn interrupted with Esc never fires &lt;strong&gt;Stop&lt;/strong&gt; , so without the others the waiter would be gone until the next full turn.&lt;/p&gt;
&lt;h5 id=&quot;2-a-file-queue&quot;&gt;2. A file queue&lt;/h5&gt;
&lt;p&gt;All state is plain files under &lt;strong&gt;~/.claude/ccbridger/&lt;/strong&gt; , one directory per session: &lt;strong&gt;pending.json, decision.json, inbox, waiter.pid&lt;/strong&gt;. Writes are atomic renames; the inbox is taken with a rename so exactly one waiter gets each message. Polling is once a second. There is no daemon and nothing listens on the network.&lt;/p&gt;
&lt;p&gt;Which sessions exist, and whether each is idle, busy or waiting, comes from Claude Code’s own registry in &lt;strong&gt;~/.claude/sessions/&lt;/strong&gt;. What a session is doing comes from its transcript file. &lt;strong&gt;ccb ls&lt;/strong&gt; and &lt;strong&gt;ccb show&lt;/strong&gt; are just readers for those two things.&lt;/p&gt;
&lt;h5 id=&quot;3-the-relay-session&quot;&gt;3. The relay session&lt;/h5&gt;
&lt;p&gt;When a request has waited 15 seconds without a local answer, the hook starts the relay in &lt;strong&gt;tmux&lt;/strong&gt; (simplified):&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-shell&quot;&gt;claude --model haiku --tools AskUserQuestion --remote-control &quot;Approval - Prod deploy - infra&quot; \
       --append-system-prompt &quot;&amp;lt;relay instructions&amp;gt;&quot; --settings '&amp;lt;two hooks&amp;gt;' &quot;&amp;lt;the request&amp;gt;&quot;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;A few things about that line matter:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;It runs on my Claude login&lt;/em&gt;&lt;/strong&gt; , with the provider variables ( &lt;strong&gt;CLAUDE_CODE_USE_BEDROCK, …_VERTEX, …_FOUNDRY&lt;/strong&gt; ) stripped, so Remote Control is available.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;It has exactly one tool&lt;/em&gt;&lt;/strong&gt; , &lt;strong&gt;AskUserQuestion&lt;/strong&gt;. It cannot read files or run commands. Its whole job is to turn the request into a native question in the Claude app.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;The model never decides anything&lt;/em&gt;&lt;/strong&gt;. A &lt;strong&gt;PostToolUse&lt;/strong&gt; hook on the relay reads the answer I tapped and writes the decision file itself. Only the exact Approve label counts as approval; anything else — Reject, free text, a typo — is a rejection.&lt;/p&gt;
&lt;p&gt;There is one relay per bridged session and it stays open, so the conversation on the phone becomes a readable history: what was asked, what I answered, in order. Its title follows the topic of the latest request.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://cdn-images-1.medium.com/max/1024/1*4Ml62MYPo5-AXFGd5cOE7Q.png&quot; alt=&quot;In the Claude mobile app: a blocked permission request from a Bedrock session arrives as a native Approve/Reject prompt, and a two-way conversation with a Vertex session where an AskUserQuestion is answered by option number.&quot;&gt;&lt;br&gt;
&lt;em&gt;In the Claude mobile app: a blocked permission request from a Bedrock session arrives as a native Approve/Reject prompt, and a two-way conversation with a Vertex session where an AskUserQuestion is answered by option number.&lt;/em&gt;&lt;/p&gt;
&lt;h5 id=&quot;questions-and-why-answers-are-mapped-by-position&quot;&gt;Questions, and why answers are mapped by position&lt;/h5&gt;
&lt;p&gt;When the bridged session calls &lt;strong&gt;AskUserQuestion&lt;/strong&gt; , the relay asks the same question with the same options. Early on I noticed the small relay model sometimes shortened the option text. For a question like “upgrade prod now?” that is not a detail I wanted to leave to chance.&lt;/p&gt;
&lt;p&gt;So the relay hook doesn’t forward the label I tapped. It finds the position of my choice among the options the relay showed and maps it onto the option at the same position in the original question. The wording on the phone can drift; the answer cannot. The original text is always in the message right above the prompt.&lt;/p&gt;
&lt;h5 id=&quot;a-two-way-conversation&quot;&gt;A two-way conversation&lt;/h5&gt;
&lt;p&gt;Approvals were the starting point, but once the relay existed the next step was obvious. The relay has a &lt;strong&gt;UserPromptSubmit&lt;/strong&gt; hook: anything I type into that conversation that isn’t one of ccBridger’s own messages is put into the session’s inbox instead of being answered by the relay model. The waiter delivers it. When the session finishes its turn, its Stop hook pastes the final message back into the relay.&lt;/p&gt;
&lt;p&gt;So from the phone I can write “ &lt;strong&gt;&lt;em&gt;Is the upgrade done? Are all the filters working?&lt;/em&gt;&lt;/strong&gt; ” and get the real session’s answer in the same thread. If the session is busy, I’m told so, along with what it is doing right now and that my message is queued.&lt;/p&gt;
&lt;h5 id=&quot;teams-one-cloud-account-many-people&quot;&gt;Teams: one cloud account, many people&lt;/h5&gt;
&lt;p&gt;API access is often shared across a team — one AWS account, one GCP project, one Azure resource. The bridge is not shared, and that falls out of the design rather than being added to it:&lt;/p&gt;
&lt;p&gt;Every developer &lt;strong&gt;installs&lt;/strong&gt;  &lt;strong&gt;ccBridger on their own machine&lt;/strong&gt;. State lives under their own &lt;strong&gt;~/.claude&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;The relay runs on that person’s own Claude login, so prompts land only in their Claude app. Nobody can see or answer anyone else’s.&lt;/p&gt;
&lt;p&gt;There is nothing central to run, patch or secure.&lt;/p&gt;
&lt;p&gt;For anything beyond the app, each person can set a &lt;strong&gt;notify_cmd&lt;/strong&gt; in their config — a shell command that runs once per request with the title and body in its environment. That covers Slack, ntfy or a pager, per user. People without a Claude subscription can turn the relay off and answer with &lt;strong&gt;ccb ok&lt;/strong&gt; over SSH.&lt;/p&gt;
&lt;h5 id=&quot;this-isn-t-just-my-problem-the-open-requests-it-answers&quot;&gt;This isn’t just my problem — the open requests it answers&lt;/h5&gt;
&lt;p&gt;I didn’t invent this gap. It’s one of the most-upvoted things on the Claude Code issue tracker. ccBridger doesn’t fix Claude Code — it’s a parallel sidecar, not a product change — but it covers the day-to-day need in these threads. Honestly, and partially:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/anthropics/claude-code/issues/28795&quot;&gt;&lt;strong&gt;#28795 — Bedrock + AWS SSO in Remote Control&lt;/strong&gt;&lt;/a&gt;. The ask: enterprise users on &lt;strong&gt;CLAUDE_CODE_USE_BEDROCK=1&lt;/strong&gt; + AWS SSO want &lt;strong&gt;Remote Control&lt;/strong&gt; without a separate Claude subscription. Signal: 131 , 13 comments — the flagship request&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;strong&gt;→ ccBridger&lt;/strong&gt; : &lt;strong&gt;Partially&lt;/strong&gt; delivers the everyday capability (approve/answer/message a Bedrock session from the phone) through hooks + a relay — different mechanism, not native decoupled auth.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/anthropics/claude-code/issues/90606&quot;&gt;&lt;strong&gt;#90606 — Permission dialog hangs the host terminal&lt;/strong&gt;&lt;/a&gt;. The ask: a permission prompt with no one at the keyboard blocks the whole session indefinitely. Signal: lower volume, but exactly on point.&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;strong&gt;→ ccBridger:&lt;/strong&gt;  &lt;strong&gt;Solves&lt;/strong&gt; it. This is the flagship feature — after 15 seconds with no local answer, the prompt is on your phone, and the terminal stays live the whole time.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/anthropics/claude-code/issues/35637&quot;&gt;&lt;strong&gt;#35637 — Permission prompts don’t render on mobile&lt;/strong&gt;&lt;/a&gt;. The ask: Remote Control shows the session but the actual Approve/Reject prompt never appears on the phone. Signal: 30 , 23 comments.&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;strong&gt;→ ccBridger: Solves&lt;/strong&gt; the symptom. API-provider prompts arrive as a native Approve/Reject card — only the exact Approve label counts.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/anthropics/claude-code/issues/28508&quot;&gt;&lt;strong&gt;#28508 — Mobile AskUserQuestion answer doesn’t return to the CLI&lt;/strong&gt;&lt;/a&gt;. The ask: you tap an answer on the phone and the terminal never receives it. Signal: 27 , 19 comments.&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;strong&gt;→ ccBridger: Solves&lt;/strong&gt; the symptom. The answer is mapped back by position, so the wording can drift on the phone but the choice can’t.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/anthropics/claude-code/issues/95744&quot;&gt;&lt;strong&gt;#95744 — Non-Anthropic provider + Remote Control in one session.&lt;/strong&gt;&lt;/a&gt; The ask: one session that is both on an API provider and remote-controllable. Signal: newer, growing.&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;strong&gt;→ ccBridger:&lt;/strong&gt; This is the whole architectural thesis — ccBridger splits those two jobs into two processes instead of forcing one session to do both.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Two honest caveats that belong right here, not buried: &lt;strong&gt;&lt;em&gt;ccBridger doesn’t remove the subscription requirement &lt;/em&gt;&lt;/strong&gt; — it moves it to a second Claude login on the same machine (the relay). And it’s &lt;strong&gt;macOS/Linux + tmux&lt;/strong&gt; , not Windows, and ZDR/compliance setups are out of scope. If you can’t run a Claude login at all, you can turn the relay off and answer with &lt;strong&gt;ccb ok&lt;/strong&gt; over SSH, or wire a &lt;strong&gt;notify_cmd&lt;/strong&gt; to Slack/ntfy/a pager.&lt;/p&gt;
&lt;h5 id=&quot;getting-started&quot;&gt;Getting started&lt;/h5&gt;
&lt;pre&gt;&lt;code class=&quot;language-shell&quot;&gt;git clone https://github.com/fxerkan/ccbridger.git &amp;amp;&amp;amp; cd ccbridger
ln -s &quot;$PWD/ccbridger&quot; ~/.local/bin/ccbridger
ln -s &quot;$PWD/ccbridger&quot; ~/.local/bin/ccb # short alias
ccb selftest

ccb install --global # every Bedrock / Vertex / Foundry session
# or: ccb install ~/code/project-a ~/code/project-b
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;--global&lt;/strong&gt; stays out of the way of sessions that already run on a Claude login. Restart the sessions you want bridged, and that’s it. From any terminal:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-plaintext&quot;&gt;ccb ls # sessions, status, what is pending
ccb show infra # what that session has been doing
ccb ok infra # approve · ccb no infra &quot;not on prod&quot;
ccb answer infra 1 # answer a question by option number
ccb send infra &quot;run the tests again and summarise the failures&quot;
ccb open infra # open the phone conversation without waiting for a request
&lt;/code&gt;&lt;/pre&gt;
&lt;h5 id=&quot;what-i-learned-building-it&quot;&gt;What I learned building it&lt;/h5&gt;
&lt;p&gt;A few things only showed up once it met real sessions:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;A hook is not killed when you answer locally.&lt;/strong&gt; The PermissionRequest hook kept waiting after I pressed Enter in the terminal, so requests looked pending forever. It now watches the session’s status and leaves when the session stops waiting.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Pressing Enter in the wrong place approves things.&lt;/strong&gt; The relay is driven through tmux. Sending Enter while a question is on screen selects the first option — Approve. The code checks what is on screen before it sends a key, and a second hook process for the same request is not allowed to ask twice.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Text pasted too early disappears.&lt;/strong&gt; A follow-up request pasted into the relay while it was still finishing the previous one was silently lost. It now waits until the relay is idle.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;My own test sessions reached my phone.&lt;/strong&gt; They ran on my login, so their prompts showed up in my app and I answered one without knowing what it was. For a while I blamed Claude Code for “ignoring” an answer that I had, in fact, overridden myself.&lt;/p&gt;
&lt;h5 id=&quot;honest-limits&quot;&gt;Honest limits&lt;/h5&gt;
&lt;p&gt;A session started with -- &lt;strong&gt;dangerously-skip-permissions&lt;/strong&gt; never asks, so there is nothing to approve. Watching and messaging still work.&lt;/p&gt;
&lt;p&gt;Only the last message of a turn comes back to the phone, not every step.&lt;/p&gt;
&lt;p&gt;Answers to questions reach the session as text; in the terminal that shows up as a denied tool call followed by the session carrying on with your answer.&lt;/p&gt;
&lt;p&gt;It depends on things Claude Code doesn’t promise to keep stable: the session registry, the hook behaviour, a few strings on the terminal screen. A future release can break it. The built-in self-test covers the queue logic, not the live integration.&lt;/p&gt;
&lt;p&gt;Developed and tested on macOS, with live sessions on AWS Bedrock. Vertex AI and Foundry go through the same hooks and are detected the same way, but I haven’t run live sessions on them yet. Linux should work; I haven’t tried it either.&lt;/p&gt;
&lt;h5 id=&quot;why-this-matters&quot;&gt;Why this matters&lt;/h5&gt;
&lt;p&gt;Permission prompts are the part of agent tooling that keeps a human in the loop. The moment they become an obstacle, people remove them. I would rather make saying yes or no cost ten seconds from wherever I am than choose between an agent that waits all afternoon and one that never asks.&lt;/p&gt;
&lt;p&gt;The whole thing is one Python file, MIT-licensed, with no dependencies. Read it, run the self-test, and watch the network: there is nothing to see there.&lt;/p&gt;
&lt;h5 id=&quot;links&quot;&gt;Links&lt;/h5&gt;
&lt;p&gt;⭐ GitHub: &lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/fxerkan/ccbridger&quot;&gt;github.com/fxerkan/ccbridger&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; Install: &lt;strong&gt;git clone · ln -s · ccb install — global&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;If this was useful, a ⭐ on GitHub helps other people who are stuck at the same prompt find it.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Developed by &lt;a rel=&quot;nofollow&quot; href=&quot;https://fxerkan.com&quot;&gt;FXerkan&lt;/a&gt; —  &lt;strong&gt;&lt;em&gt;Code more, worry less.&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
</description>
<category>Articles</category>
<guid isPermaLink="true">https://coderlegion.com/29732/remote-control-based-claude-code-approve-bedrock-vertex-foundry-sessions-from-your-phone</guid>
<pubDate>Sun, 04 Oct 2026 14:13:45 +0000</pubDate>
</item>
<item>
<title>Getting Started with AWS Bedrock</title>
<link>https://coderlegion.com/1128/getting-started-with-aws-bedrock</link>
<description>&lt;p&gt;Developers can create and scale generative AI applications with Amazon Bedrock, a fully managed service, by utilising foundation models from AWS and other suppliers. In this guide, I’ll walk you through getting started with AWS Bedrock and invoking the Amazon Titan Text Lite v1 model for text generation.&lt;/p&gt;
&lt;h3 id=&quot;prerequisites&quot;&gt;Prerequisites&lt;/h3&gt;
&lt;p&gt;Before you begin, ensure that you have the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;AWS Account with access to Amazon Bedrock(For testing will be using AmazonBedrockFullAccess)&lt;/li&gt;
&lt;li&gt;AWS CLI installed and configured with appropriate permissions&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Boto3 (AWS SDK for Python) installed on your machine&lt;br&gt;
You can install Boto3 using:&lt;/p&gt;
&lt;p&gt; pip install boto3&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Step 1: Set Up AWS Credentials&lt;br&gt;
If you haven’t already configured your AWS credentials, run:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;aws configure
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Enter your AWS Access Key ID, Secret Key, and select your preferred region where Amazon Bedrock is available (e.g., us-east-1).&lt;/p&gt;
&lt;p&gt;Step 2: Initialize the Bedrock Client&lt;br&gt;
To interact with Amazon Bedrock, we need to initialise the AWS Bedrock runtime client using Boto3:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;import boto3
import json

# Initialize Bedrock client
bedrock = boto3.client(&quot;bedrock-runtime&quot;, region_name=&quot;us-east-1&quot;)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Step 3: Invoke Amazon Titan Text Lite v1&lt;br&gt;
Let’s create a simple script to invoke Amazon Titan Text Lite v1 for generating a text response.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;# Define the input text
question = &quot;What is the capital of India?&quot;

# Prepare the payload
payload = {
    &quot;inputText&quot;: question,
    &quot;textGenerationConfig&quot;: {
        &quot;maxTokenCount&quot;: 100,
        &quot;temperature&quot;: 0.5,
        &quot;topP&quot;: 0.9
    }
}

# Invoke Titan Text Lite v1
response = bedrock.invoke_model(
    modelId=&quot;amazon.titan-text-lite-v1&quot;,
    contentType=&quot;application/json&quot;,
    accept=&quot;application/json&quot;,
    body=json.dumps(payload)
)

# Parse response
result = json.loads(response[&quot;body&quot;].read().decode(&quot;utf-8&quot;))

# Extract and print the output text
if &quot;results&quot; in result and isinstance(result[&quot;results&quot;], list):
    print(&quot;Answer:&quot;, result[&quot;results&quot;][0][&quot;outputText&quot;].strip())
else:
    print(&quot;Unexpected response format:&quot;, result)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Step 4: Running the Script&lt;br&gt;
Save the script as invoke_bedrock.py and run it using:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;python invoke_bedrock.py
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Expected Output:&lt;br&gt;
&lt;em&gt;Answer: New Delhi is the capital of India. It is situated in country's federal district, which is known as the National Capital Territory of Delhi (NCT), and is located in the Indian subcontinent.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Step 5: Fine-tuning Model Parameters&lt;/p&gt;
&lt;p&gt;Amazon Titan models allow temperature and topP tuning for response variation:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;temperature: Controls randomness (Lower = More deterministic, Higher = More creative)&lt;/li&gt;
&lt;li&gt;topP: Controls sampling probability (Higher = More diverse responses)&lt;br&gt;
Adjust these values in the textGenerationConfig section for different results.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Conclusion&lt;br&gt;
You have successfully invoked the Amazon Titan Text Lite v1 model using AWS Bedrock! You can now integrate this into your applications for chatbosummarisationtion, and content generation.&lt;/p&gt;
&lt;p&gt;Happy coding! &lt;/p&gt;
</description>
<category>AI Ethics</category>
<guid isPermaLink="true">https://coderlegion.com/1128/getting-started-with-aws-bedrock</guid>
<pubDate>Sun, 16 Feb 2025 11:45:24 +0000</pubDate>
</item>
</channel>
</rss>