
Kiro Crew's decision model won't fit on my 16 GB Mac, so I hosted it on Amazon SageMaker in my own account
The model runs in my own account in the AWS Cloud, on a SageMaker real-time endpoint, which is an endpoint that keeps one instance running all the time and bills for it by the hour. I picked that type because the model needs about 12 GB, and SageMaker Serverless endpoints stop at 6 GB of memory. Running it on the Mac was ruled out by the memory problem above.
Figure 1 below shows the setup. Kiro Crew on my Mac sends a small question to a model that runs in my own AWS account, and the answer comes back. The repo with every script is at kiro-crew-decider-sagemaker
The problem
Kiro Crew makes small automatic decisions while it works. One example is the tool-risk check: before a session runs a tool on its own, Kiro Crew asks a small model whether that call is worth a second look. This check only runs in sessions that approve tool calls automatically, because in other sessions you read each call yourself. Another is skill choice: given your message and your list of skills, which one should load? The model that answers these questions is called the decision model. It is small and it is asked often, so it has to answer quickly
The feature is called Decisions, and it is off by default. While it is off, Kiro Crew keeps doing what it did before the feature existed, using its built-in rules. When you switch Decisions on, the default decision model is Jev. Jev is not part of Kiro Crew. TypeSafe, a separate company, hosts it at
api.typesafe.ai , and Kiro Crew's own Settings panel says that what a decision point collects is sent to TypeSafe. That means my messages and skill names would go to another companyI had three reasons to want something else.
- Privacy. I did not want my messages and skill names sent to a company I have no contract with.
- Control. I wanted the model, its logs and the list of who may call it to sit in my own AWS account. CloudWatch gives me the logs, and AWS Identity and Access Management (IAM) decides who may call.
- Memory. Kiro Crew can also download an open-weight model called Strands Decider 2B and run it on the Mac. It needs about 12 GB of working memory, and Kiro Crew only recommends it on a machine with 48 GB. My Mac has 16 GB and cannot spare 12 of it.
So the question for this article is: can a 16 GB Mac still use Kiro Crew's own decision model without sending data to an outside company?
The short answer is yes for tool-risk checks and no for skill choice. I hosted Strands Decider 2B on Amazon SageMaker. Kiro Crew called it for real, and CloudWatch counted every call. Skill choice was too slow on a CPU instance, and the details are below.
What I built
Kiro Crew already knows how to talk to SageMaker. If you give it an address that starts with
sagemaker:// , it signs each decision with my own AWS credentials and calls the endpoint. It sends the same JSON it would send to Jev, and it uses no API key.

Figure 1: Kiro Crew on my Mac sends a signed call to the model in my AWS account and gets an answer back. IAM limits who may call, CloudWatch records each call, and the lower box is the one-time setup.
The diagram leaves out instance sizes and names on purpose. The numbers are in the steps below.
Step 1: Put a SageMaker front door on the model
SageMaker expects a container to answer
GET /ping and POST /invocations . Strands Decider already serves Kiro Crew's format on its own path, so my container is a thin adapter in front of it. It also fixes one mismatch: Kiro Crew sends an option with no rubric as null , and the Strands schema rejects that with a 422 error. The function below is the fix, so look at how it replaces null with an empty string. The full serve.py is in the repo.# serve.py, lines 44 to 61def _blank_null_criteria(body: bytes) -> bytes: """Kiro Crew sends an option with no rubric as ``null``; strands' schema types every rubric as a string and 422s a null one. An empty rubric means the same. Identical to strands_decider_cpu.py's _blank_null_criteria.""" try: data = json.loads(body) except ValueError: return body questions = data.get("questions") if isinstance(data, dict) else None if not isinstance(questions, dict): return body for question in questions.values(): criteria = question.get("criteria") if isinstance(question, dict) else None if isinstance(criteria, dict): for option, rubric in criteria.items(): if rubric is None: criteria[option] = "" return json.dumps(data).encode()The Dockerfile holds only code and dependencies, about 2 GB. SageMaker pulls the weights from Amazon Simple Storage Service (Amazon S3) when the endpoint starts. The last line matters more than it looks, and I explain why in the problems section.
# Dockerfile (last line)ENTRYPOINT ["sh", "-c", "exec python -m uvicorn serve:app --host 0.0.0.0 --port 8080 --log-level warning"]I built the image with AWS CodeBuild, so no Docker runs on my Mac. A CloudFormation template in the repo creates the build project and the Amazon Elastic Container Registry (Amazon ECR) repository.
Step 2: Weights to Amazon S3
I already had the Strands weights on my Mac. Kiro Crew pins every model file by SHA-256, and all 16 files matched before I packed them into one
model.tar.gz . The command below uploads the archive, and you replace the bucket name with your own.aws s3 cp model.tar.gz s3://YOUR_BUCKET/model/model.tar.gz --region ap-south-1Step 3: Create the endpoint
After CodeBuild pushed the image, I created the model, an endpoint configuration and the endpoint. I used
ml.m5.2xlarge , a CPU instance with 32 GB of memory. I could not try a GPU instance because my account's quota for ml.g4dn.xlarge was 0. Replace the placeholders with your own names.aws sagemaker create-model --model-name YOUR_NAME \ --primary-container Image=YOUR_ECR_IMAGE,ModelDataUrl=s3://YOUR_BUCKET/model/model.tar.gz \ --execution-role-arn YOUR_SAGEMAKER_ROLE_ARN --region ap-south-1aws sagemaker create-endpoint-config --endpoint-config-name YOUR_CFG \ --production-variants VariantName=v1,ModelName=YOUR_NAME,InitialInstanceCount=1,InstanceType=ml.m5.2xlarge \ --region ap-south-1aws sagemaker create-endpoint --endpoint-name YOUR_NAME --endpoint-config-name YOUR_CFG --region ap-south-1aws sagemaker wait endpoint-in-service --endpoint-name YOUR_NAME --region ap-south-1Step 4: Allow one caller to call one endpoint
Kiro Crew only ever calls
InvokeEndpoint , so the role it uses needs one action on one resource. The policy below says exactly that, and the Resource line is the part to check. IAM Access Analyzer found nothing to report in it. With only this policy attached, InvokeEndpoint worked and DescribeEndpoint returned AccessDenied.{ "Version": "2012-10-17", "Statement": [{ "Effect": "Allow", "Action": "sagemaker:InvokeEndpoint", "Resource": "arn:aws:sagemaker:ap-south-1:YOUR_ACCOUNT_ID:endpoint/YOUR_NAME" }]}Step 5: Connect Kiro Crew
Kiro Crew asks for your consent before it sends decision data anywhere. Consent is Kiro Crew's record that you agreed to send data to one specific address. It is tied to the exact address string, so changing the endpoint name or region withdraws it. The catch is that consent binds to the address your dashboard shows at the moment you switch Decisions on. If the dashboard still shows the old Jev address, you consent to Jev, and the SageMaker address never gets used.
This order worked. First set the address, the model name and a timeout, while Decisions is still off. In my proof run the timeout started at 5000, which made skill choice time out. It must have been raised before the answers below, because an 8.9 second answer cannot finish inside a 5000 ms budget, and my notes record a change to 20000. I did not run 10000 through the gateway. Tool risk and skill choice never wait more than 10 seconds, so 10000 is the most that can help for them, and it is the value I recommend.
kirocrew config set decisions.provider.endpoint "sagemaker://YOUR_NAME?region=ap-south-1"kirocrew config set decisions.provider.model "strands-decider-2b"kirocrew config set decisions.provider.timeout_ms 10000Then reload the dashboard with a hard refresh, open Settings, Developer, Decisions, and check that the panel says "Sent to sagemaker://…". If it still names
api.typesafe.ai , reload again. Only then switch on Decisions and the risky tool-call notes. The default timeout_ms is 1000, which is shorter than every real decision I saw (2.2 seconds and up), so set it before you connect.Proof that it works
I wanted evidence from both sides, so I compared Kiro Crew's own decision log with CloudWatch. The four lines below are the answered tool-risk checks from the log, with session IDs removed. Look at
latency_ms in the thousands and error null , which together mean a real answer came back from strands-decider-2b .21:37:04 tool.risk latency_ms 2180 error null risk=safe tool=read21:37:23 tool.risk latency_ms 4341 error null risk=caution tool=session_send21:37:25 tool.risk latency_ms 2226 error null risk=caution tool=work_ledger_record21:37:48 tool.risk latency_ms 8933 error null risk=caution tool=shellThe table shows the same minute in CloudWatch. It has four invocations for four decisions, no errors, and the model time matches the log within a third of a second, which is network time.
Same minute, 21:37 UTC | Value |
|---|---|
CloudWatch Invocations | 4 |
CloudWatch ModelLatency , summed | 17.38 s |
Kiro Crew latency_ms , summed | 17.68 s |
4XX and 5XX errors | 0 and 0 |
Remember that the risk check only marks a call as worth a second look and never blocks it. The model rated three of these calls as caution, but none was marked risky. The check only adds a note to the tool card, so it does not stop anything.
Is it fast enough?
Jev answers in about 0.7 seconds according to Kiro Crew's Settings panel. My SageMaker endpoint answered tool-risk checks in 2.2 to 8.9 seconds, so about 3 to 13 times slower than Jev's 0.7 seconds, with a typical answer near 3 seconds. That is acceptable for risk checks, because Kiro Crew holds the tool card for at most 10 seconds while it waits. It is too slow for skill choice, which has the same 10 second limit and needs far more time.
Four of the decision points have a hard wait limit that no setting changes: 10 seconds for tool risk, skill choice and compaction, and 7 seconds for memory recall. The table shows where each of those points stands on my CPU instance.
Decision point | Measured on my endpoint | Wait limit | Verdict |
|---|---|---|---|
Tool-risk check | 2.2 to 8.9 s | 10 s | Works |
Skill choice (39 skills) | about 32 s | 10 s | Too slow on CPU |
Compaction, memory recall | not measured | 10 s, 7 s | Untested |
The two skill-choice calls did reach the endpoint, and CloudWatch shows 31.95 and 32.65 seconds of model time. Kiro Crew had already stopped waiting and logged a timeout. The 8.9 second shell check is close to the limit, so a longer tool input could time out too.
Latency grows with the number of questions in a request, which explains the skill-choice result. I measured 15 direct calls at each size from my Mac in India.
Questions per request | Median latency |
|---|---|
1 | 0.9 s |
3 | 2.9 s |
6 | 8.9 s |
One question is far inside the 10 second limit, three are fine, and six questions reach 8.9 seconds, close to the limit.
In a separate 35-call run, the first call after startup took about 3 seconds, and there were no errors. The container handles one request at a time, so extra callers just queue. I did not test a second instance. Against Jev, Kiro Crew's own numbers say Strands Decider 2B matches 84% of Jev's correct answers overall and 69% on the hard items.
Problems I hit
- The first endpoint crash-looped. SageMaker starts the container with an extra
serveargument. My exec-form entrypoint passed it to uvicorn, which rejected it, and the endpoint failed its health check after 24 minutes. Thesh -c execform in step 1 ignores that argument, and the rebuilt endpoint was ready in about 3 minutes.
- The role could not read the weights. The managed SageMaker policy only covers buckets with
sagemakerin the name, so I granted the model prefix by hand. The role ARN also needs its/service-role/path, or CreateModel calls the role invalid.
- Consent bound to the wrong address. I had an old Settings tab open, so consent bound to Jev. Skill choice failed in 2 ms with
error: "provider", and CloudWatch showed zero calls. The order in step 5 came from this failure.
- Safety rules blocked my agent. Kiro Crew's shell policy blocks role creation,
s3 cpand deletes, so I ran those commands in a normal terminal myself. I think that is correct, because an agent should not create roles in your account unprompted.
Cost
The endpoint costs about $0.49 an hour even when nothing calls it, so I deleted it after each test. That is the main trade-off of a real-time endpoint: left running it would cost about $354 a month. I ran the whole setup twice, and the total came to about $0.81.
Item | Cost |
|---|---|
Endpoint, 1.59 hours at $0.485 | $0.77 |
CodeBuild, three builds | about $0.04 |
Total | about $0.81 |
A $10 AWS Budget with email alerts watched both runs.
Deploy, verify, clean up
The repo has
infra/template.yaml for the stack, scripts/deploy.sh to deploy in two passes, scripts/verify.py to send one signed call, scripts/benchmark.py to measure latency, and scripts/cleanup.sh to delete everything and check that each resource is gone. Run the verify script first, then compare the newest decision-log lines with CloudWatch as in the proof section.For cleanup, I deleted the endpoint, endpoint configuration, model, build project, bucket, repository, build role, the proof role I used for the access test, the inline policy on the execution role and both log groups, and I checked each with a read call afterwards. Decisions is switched off again. I kept the budget on purpose.
Where this leaves the question
A 16 GB Mac can use Kiro Crew's own decision model for tool-risk checks without sending data to TypeSafe, as long as you accept a SageMaker bill and answers in a few seconds. For skill choice, keep Jev, or use a faster instance than I could try. Next I want to measure compaction and memory recall against their limits, and test a GPU instance once my quota allows.
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article