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.

European Parliament committee backs digital euro

https://www.euronews.com/business/2026/06/23/european-parliament-backs-long-awaited-digital-euro-...
1•lode•58s ago•1 comments

Sunsetting Porto to focus on Tempo accounts

https://ithaca.xyz/updates/sunsetting-porto
1•kindkang2024•1m ago•0 comments

Show HN: TikZ Editor – WYSIWYG editor for figures in LaTeX

https://tikz.dev/editor/
1•DominikPeters•2m ago•0 comments

The AI Code Agent Hype: Real Progress vs. Expectations

https://jawuil.dev/en/blog/the-ai-code-agent-hype-real-progress-vs-expectations/
1•jawuilp•2m ago•0 comments

Badakhshan Falls Under Mafia: Systematic Gold Mine Plunder, Taliban Corruption

https://8am.media/eng/badakhshan-falls-under-mafia-control-systematic-gold-mine-plunder-and-talib...
1•JPLeRouzic•3m ago•0 comments

Meta Glasses

https://www.meta.com/at/en/ai-glasses/meta-glasses/
1•tosh•3m ago•0 comments

Ask HN: How do you keep up with tech news

1•dariusogenyiebu•3m ago•0 comments

Vulgar Materialism

https://borretti.me/article/on-vulgar-materialism
1•ibobev•4m ago•0 comments

Second taskbar to my Windows PC

https://www.makeuseof.com/add-second-taskbar-to-windows-with-windowsill/
1•veler•6m ago•0 comments

Show HN: Bun-sqlgen – Type-safe raw SQL for Bun, no ORM

https://github.com/ilbertt/bun-sqlgen
4•ilbert•6m ago•0 comments

Elevated error rate across multiple models

https://status.claude.com/incidents/jbhf20wjmzrf
14•rob•7m ago•2 comments

The eerie interface of man and machine (Life Magazine, October 1967)

https://blog.jgc.org/2026/06/the-eerie-interface-of-man-and-machine.html
1•jgrahamc•7m ago•0 comments

The AI-powered World Cup runs on thousands of data workers

https://restofworld.org/2026/fifa-world-cup-ai-data-workers/
1•jyunwai•8m ago•0 comments

OctoPunk – a full-featured, AI-integrated GitHub client

https://www.octopunk.io/
1•ldelossa•9m ago•1 comments

Useful app changed how I use Windows 11's taskbar

https://www.xda-developers.com/using-windowsill-to-change-windows-11-taskbar/
1•veler•9m ago•0 comments

Ushering in the Next Frontier of Quantum Innovation

https://www.whitehouse.gov/presidential-actions/2026/06/ushering-in-the-next-frontier-of-quantum-...
1•Tomte•9m ago•0 comments

The Economy Is Booming Just Not for You [video]

https://www.youtube.com/watch?v=-RMZszjZSNE
1•surprisetalk•10m ago•0 comments

US issues Executive Order To accelerate PQC adoption

https://www.whitehouse.gov/presidential-actions/2026/06/securing-the-nation-against-advanced-cryp...
1•glitchc•10m ago•0 comments

Show HN: Saymade – AI app builder for complex software

https://saymade.com
1•domag•11m ago•0 comments

Kids360: Getting Adopted Globally

https://srlabs.de/blog/kids360
1•louismerlin•11m ago•0 comments

When Ideology Becomes Systemic Risk

https://twitter.com/haridigresses/status/2068167592301223939
1•gmays•11m ago•0 comments

Modern CSS theming with light-dark(), contrast-color(), and style queries

https://una.im/modern-css-theming
1•bpierre•13m ago•0 comments

Solving Pipes Puzzles with Constraint Propagation

https://minimallysufficient.com/posts/pipes/
2•minsufficient•13m ago•1 comments

Does AI Adoption Improve Productivity? Effects over the First Three Years

https://www.bok.or.kr/eng/bbs/B0000354/view.do?nttId=10098400&menuNo=400409&relate=Y&depth=400409...
1•toomuchtodo•14m ago•1 comments

We Don't Understand Neural Networks at the Algorithmic Level

https://kripken.github.io/blog/neuroscience/2026/06/20/algorithmic.html
1•azakai•14m ago•0 comments

Bryntum: For Agents

https://bryntum.com/agents/
1•ritzaco•15m ago•0 comments

Periodic Table of Computing

https://alexandrehtrb.github.io/periodic_table_of_computing.html
1•alexandrehtrb•15m ago•0 comments

Noemra, AI that builds and runs a company from one prompt

https://noemra.co
1•Yasib•16m ago•0 comments

Chat is a solvent

https://papermill.io/blog/chat-is-a-solvent
1•davidpapermill•16m ago•1 comments

Hardware Engineering as Code

https://github.com/charles-azam/pyforge
1•couAUIA•17m ago•0 comments