frontpage.
newsnewestaskshowjobs

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•1y 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•1y 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•1y 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.

Dividend Puzzle

https://en.wikipedia.org/wiki/Dividend_puzzle
1•rzk•25s ago•0 comments

A 23-year-old founder built Radiant World into a $12B-a-year trading giant

https://www.msn.com/en-us/money/general/a-23-year-old-founder-built-radiant-world-into-a-12-billi...
1•petethomas•34s ago•0 comments

Enabling the next iteration of the borrow checker on nightly

https://blog.rust-lang.org/2026/08/04/enabling-polonius-alpha-on-nightly/
1•weinzierl•4m ago•0 comments

Stripe will reportedly acquire AI gateway startup OpenRouter for $7B+

https://techcrunch.com/2026/08/16/stripe-will-reportedly-acquire-ai-gateway-startup-openrouter-fo...
8•sbulaev•8m ago•1 comments

What Early Internet Hackers Understood That We Forgot [video]

https://www.youtube.com/watch?v=XHeMsXDyw2A
1•pierrephpguru•9m ago•0 comments

Agents Aren't Software

https://runta.com/blog/agents-arent-software/
1•jinqueeny•10m ago•0 comments

Show HN: Slick – I built a search engine where you control the ranking

https://slicksearchhq.com/
1•nox21125•13m ago•0 comments

The billionaire threatening to upend Wall Street

https://www.ft.com/content/cf87b6cd-f940-4b09-b072-7da36faa183f
1•petethomas•16m ago•0 comments

Single-User Inference Card

https://markohaberl.substack.com/p/single-user-inference-card
1•mhaberl•21m ago•0 comments

SINR: Signal-to-interference-plus-noise ratio

https://en.wikipedia.org/wiki/Signal-to-interference-plus-noise_ratio
2•teleforce•22m ago•0 comments

AI Slop Is Real

https://aichatspot.online/what-is-ai-slop-and-does-it-really-ruin-youtube/
1•coinpress•23m ago•0 comments

Anthropic CEO says the way for AI to win over the public is to cure cancer

https://www.businessinsider.com/anthropic-ceo-dario-amodei-ai-public-opinion-cure-cancer-2026-8
4•wertyk•25m ago•5 comments

Show HN: Punyecs – A puny ECS library based on class attributes and querying

https://github.com/Modular-Game-Components/punyecs
1•thyrgle•26m ago•0 comments

Frontier models, transparency and trust; a new golden age in research for some?

https://scholarlyfutures.substack.com/p/frontier-models-transparency-and
1•JohnHammersley•30m ago•0 comments

Show HN: TKeeper – OSS machine identities without a single point of compromise

https://tkeeper.org
1•_qnt•37m ago•0 comments

Show HN: ChatGPT and Claude export viewer that runs locally in the browser

https://www.vinaa.ai/tools/ai-chat-history-browser/
1•sujee•38m ago•0 comments

Ukraine Finds Nvidia AI Chip in New Russian Missile, HUR Says

https://www.kyivpost.com/post/82225
7•osivertsson•42m ago•1 comments

Nobody Knows Anything

https://www.strangeloopcanon.com/p/nobody-knows-anything
2•gtirloni•43m ago•0 comments

Off-Sprey

https://offsprey.com/
1•voidmain0001•45m ago•1 comments

Apologia for the Old Ball

https://ponnekanti.net/oldball/
1•reasonableklout•49m ago•0 comments

Smarter – open-source, declarative AI authoring platform (Django, K8s-inspired)

https://github.com/smarter-sh/smarter
1•lpm0073•50m ago•0 comments

Sperm whales in 19th century shared ship attack information – Whales

https://www.theguardian.com/environment/2021/mar/17/sperm-whales-in-19th-century-shared-ship-atta...
4•bilsbie•1h ago•1 comments

Show HN: I Turned Apple Calendar into Tetris

https://github.com/EvanZhouDev/calendar-tetris
2•EvanZhouDev•1h ago•0 comments

Ghosts of the Past and Devils of the Present

https://thenewcuriosityshop.substack.com/p/ghosts-of-the-past-and-devils-of
1•benbreen•1h ago•0 comments

Legbar – live AI agent sessions beside GitHub CI, in one terminal

https://github.com/gmhoward9289-ops/legbar
2•gmhoward9289•1h ago•0 comments

Redis uses less RAM than you think, nibble measures how much, and applies it

https://github.com/RyanRana/nibble
2•ryanrana•1h ago•2 comments

Anthropic's 'Watermark' Text Adulteration in Claude Is a Perversion of Writing

https://daringfireball.net/2026/08/anthropics_watermark_text_adulteration_in_claude_is_a_perversi...
69•ropbear•1h ago•47 comments

Claude Seems Down

46•zhan_eg•1h ago•43 comments

Failure Takes Years to Admit

https://julienreszka.com/blog/failure-takes-years-to-admit/
2•julienreszka•1h ago•0 comments

Claude Is Down

https://claude.ai/new
28•nabeards•1h ago•37 comments