frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: AgentShield SDK – Runtime security for agentic AI applications

https://pypi.org/project/agentshield-sdk/
2•iamsanjayk•8mo ago
Hi HN,

We built AgentShield, a Python SDK and CLI to add a security checkpoint for AI agents before they perform potentially risky actions like external API calls or executing generated code.

Problem: Agents calling arbitrary URLs or running unchecked code can lead to data leaks, SSRF, system damage, etc.

Solution: AgentShield intercepts these actions:

- guarded_get(url=...): Checks URL against policies (block internal IPs, HTTP, etc.) before making the request.

- safe_execute(code_snippet=...): Checks code for risky patterns (os import, eval, file access, etc.) before execution.

It works via a simple API call to evaluate the action against configurable security policies. It includes default policies for common risks.

Get Started:

Install: pip install agentshield-sdk

Get API Key (CLI): agentshield keys create

Use in Python: from agentshield_sdk import AgentShield # shield = AgentShield(api_key=...) # await shield.guarded_get(url=...) # await shield.safe_execute(code_snippet=...)

Full details, documentation, and the complete README are at <https://pypi.org/project/agentshield-sdk/>

We built this because securing agent interactions felt crucial as they become more capable. It's still early days, and we'd love to get your feedback on the approach, usability, and policies.

Comments

subhampramanik•8mo ago
Looks interesting -- Does it work like a wrapper on top of OpenAI specs? Like, can we just replace the OpenAI package with this, and it's fully integrated?
iamsanjayk•8mo ago
Hey, thanks for asking! Good question.

AgentShield isn't a wrapper around the OpenAI package, so you wouldn't replace openai with it. Think of AgentShield as a separate safety check you call just before your agent actually tries to run a specific risky action.

So, you'd still use the openai library as normal to get your response (like a URL to call or code to run). Then, before you actually use httpx/requests to call that URL, or exec() to run the code, you'd quickly check it with shield.guarded_get(the_url) or shield.safe_execute(the_code).

Currently, It focuses on securing the action itself (the URL, the code snippet) rather than wrapping the LLM call that generated it.

I decided to make a worse UUID for the pettiest of reasons

https://gitpush--force.com/commits/2026/01/meet-smolid/
1•fla•1m ago•0 comments

Anti-Coercion

https://trends.google.com/trends/explore?date=today%203-m&q=anti-coercion&hl=en
3•madspindel•6m ago•0 comments

Postmortem on TreeTracker Join: Simple, Optimal, Fast

https://zhu45.org/posts/2026/Jan/03/postmortem-on-treetracker-join-simple-optimal-fast/
2•remywang•8m ago•0 comments

Algorithmica

https://en.algorithmica.org/
3•Nales•12m ago•1 comments

Trump threatens tariffs on French wines to get Macron to join Board of Peace

https://www.reuters.com/world/europe/trump-threatens-tariffs-french-wines-get-macron-join-board-p...
4•kamaraju•12m ago•0 comments

AI Californication

4•shoman3003•15m ago•0 comments

Is This the Future of Software Development? (2026 Predictions)

https://theexceptioncatcher.com/2026/01/predictions-for-development-practices-in-2026/
2•monksy•16m ago•0 comments

Apple Intelligence Siri is over a year late, but that might be a good thing

https://9to5mac.com/2026/01/18/apple-intelligence-siri-delay-comes-with-one-benefit/
2•fork-bomber•21m ago•0 comments

Scientists spends 20 years studying Japanese tits

https://www.youtube.com/watch?v=doj_wt9ER_Q
3•gsf_emergency_6•22m ago•0 comments

KAOS – The Kubernetes Agent Orchestration System

https://github.com/axsaucedo/kaos
2•axsaucedo•23m ago•1 comments

Open source's new mission: Rebuild the EU tech stack

https://www.theregister.com/2026/01/19/open_sources_new_mission_rebuild/
3•rippeltippel•28m ago•0 comments

Ribs (Recordings)

https://en.wikipedia.org/wiki/Ribs_(recordings)
2•thunderbong•29m ago•0 comments

The Rebirth of Pennsylvania's Infamous Burning Town

https://www.atlasobscura.com/articles/centralia-pennsylvania-rebirth
3•pbshgthm•31m ago•0 comments

Substack of Keir Starmer

https://substack.com/@keirstarmer
2•manlymuppet•37m ago•0 comments

The Longest-Running Lab Experiment Is Almost 100 Years Old

https://www.sciencealert.com/the-worlds-longest-running-lab-experiment-is-almost-100-years-old
2•jnord•39m ago•1 comments

Some C habits I employ for the modern day

https://www.unix.dog/~yosh/blog/c-habits-for-me.html
1•signa11•40m ago•0 comments

Renfrew Christie Dies at 76; Sabotaged Racist Regime's Nuclear Program

https://www.nytimes.com/2026/01/14/world/africa/renfrew-christie-dead.html
1•bryanrasmussen•43m ago•1 comments

AI and jobs: The decline started before ChatGPT

https://engineeringprompts.substack.com/p/ai-and-jobs-the-decline-started-before
3•_delirium•46m ago•1 comments

Twenty-Fifth Amendment

https://constitution.congress.gov/constitution/amendment-25/
2•rolph•49m ago•0 comments

The Era of Spec-Driven Development Has Begun

https://twitter.com/deepwhitman/status/2013423486983905282
1•bilater•49m ago•0 comments

White-collar overproduction means the victory of sharp elbows over sharp minds

https://twitter.com/EricRWeinstein/status/1168926268202672128
2•MrBuddyCasino•53m ago•0 comments

OpenAI GPT-5.2-Codex (High) vs. Claude Opus 4.5 vs. Gemini 3 Pro (In Production)

https://www.tensorlake.ai/blog/gpt5.2-codex-high-vs-opus-4.5-vs-gemini-3-pro
1•shricodevvv•58m ago•0 comments

A Canadian's Call to Arms, Being Pissed Off at the State of Computing

https://aaron.vegh.ca/2026/01/a-modest-proposal
3•HotGarbage•1h ago•0 comments

The Ordinary Heroes of the Taj Hotel: Rohit Deshpande (2012) [video]

https://www.youtube.com/watch?v=vQGz1YRqBPw
1•kamaraju•1h ago•0 comments

Ridiculously Huge Numbers [video]

https://www.youtube.com/playlist?list=PL3A50BB9C34AB36B3
1•xelxebar•1h ago•1 comments

Using Beads to supercharge my agent workflow

https://jonsimpson.ca/using-beads-to-supercharge-my-workflow/
1•jonniesweb•1h ago•1 comments

Show HN: Ulog – USB serial logger with auto session management

https://github.com/matterizelabs/ulog
1•abu-matterize•1h ago•4 comments

Becoming a Whorelord: The Overly Analytical Guide to Escorting (2021)

https://knowingless.com/2021/10/19/becoming-a-whorelord-the-overly-analytical-guide-to-escorting/
3•andsoitis•1h ago•1 comments

The End of Industrial Society (2021)

https://www.palladiummag.com/2021/03/24/the-end-of-industrial-society/
2•MrBuddyCasino•1h ago•0 comments

Defections from $12B Thinking Machines shows struggle for AI talent

https://fortune.com/2026/01/16/mira-murati-thinking-machines-staff-defections-openai-zoph-metz-sc...
1•nsoonhui•1h ago•0 comments