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.

The new HTTP QUERY method explained

https://kreya.app/blog/new-http-query-method-explained/
1•CommonGuy•2m ago•0 comments

Colombia's president accuses Israel of compromising election software

https://twitter.com/petrogustavo/status/2068831260982571151
1•rendall•2m ago•1 comments

OceanBase Uses Multi-Paxos for High Availability

https://en.oceanbase.com/blog/zero-data-loss-fast-failover-oceanbase-multi-paxos
1•mountainview•3m ago•0 comments

Design an international money transfer system

https://medium.com/techtrends-digest/designing-an-international-money-transfer-system-4f816d6f98dc
1•sampathanurag3•3m ago•0 comments

Show HN: Demand Intelligence and AI Design

https://dxmax.cc/
1•akhyansh0507•7m ago•0 comments

Words, Words, Words

https://aeon.co/essays/literature-fans-should-welcome-ai-as-a-fellow-wordsmith
1•benbreen•9m ago•0 comments

OpenAI pitches ChatGPT ads to Cannes marketers ahead of IPO

https://www.ft.com/content/9717a042-fd09-4d08-972d-29b68f7985a4
1•thm•11m ago•0 comments

Design Crit: We taught AI to judge design like a designer

https://twitter.com/contralabs_ai/status/2067642363909144932
1•nopinsight•13m ago•0 comments

Tapered Language Models

https://arxiv.org/abs/2606.23670
1•E-Reverance•18m ago•0 comments

Will AI Kill Taylor Swifts: The Rise of Ultra-Personalized Music

https://ryanspahn.substack.com/p/how-listening-to-only-ai-music-changes
1•paul7986•21m ago•0 comments

DepsGuard – Hardens Package Manager

https://depsguard.com/
1•javatuts•24m ago•0 comments

Show HN: Code Stitcher – The anti-agentic workflow

https://github.com/ue-patcher/code_stitcher/releases
1•aihatterer•26m ago•0 comments

C++ Lifetime-End Pointer-Zap and OOTA Progress

https://people.kernel.org/paulmck/c-pointer-zap-and-oota-progress
2•matt_d•28m ago•0 comments

Ask HN: NIST Randomness Beacon Interruption?

2•hash0•28m ago•0 comments

AI is accelerating the exposure of the gap between people

https://jaketao.com/ai-divide-people
2•taojing10•31m ago•0 comments

URL and HTML to Markdown API Optimized for LLMs

https://markdownify-monorepo.vercel.app/
1•yellow-cucumber•32m ago•0 comments

Ask HN: Do you use web apps on your smartphone?

2•julienreszka•32m ago•1 comments

Desktop Commander MCP

https://github.com/wonderwhy-er/DesktopCommanderMCP
1•javatuts•33m ago•0 comments

Show HN: AI Command Center

https://www.invook.ai
1•abhishekucs•34m ago•0 comments

15 sorting algorithms in 6 minutes (2013) [video]

https://www.youtube.com/watch?v=kPRA0W1kECg
2•akkartik•38m ago•0 comments

Stop your agent from saying it's done when it isn't

https://deepwiki.com/grainulation/bean
4•woptober•39m ago•0 comments

CodeTimeline – Visual AI-narrated history for any GitHub repo

https://github.com/Rohan5commit/codetimeline
1•rohan33332e•40m ago•1 comments

Vortex Layer Theory

https://zenodo.org/records/20806350
2•aleksy_rybicki•40m ago•0 comments

AI Code Stitcher - Agentic AI Avoidance.

2•aihatterer•41m ago•0 comments

Codex Fast mode isn't 50% faster, but still takes 2.5x usage

https://old.reddit.com/r/codex/comments/1t9p4t5/fast_mode_isnt_actually_50_faster_but_still_takes/
2•behnamoh•43m ago•2 comments

Guidance injection: reliable instructions for local LLMs

https://samihonkonen.com/posts/guidance-injection/
2•shonkone•43m ago•0 comments

Corelayer0 – Turn any OpenAPI spec into a hosted MCP server

https://corelayer0.com
2•shackdown•43m ago•0 comments

Picot: Codex style GUI for the Pi coding agent

https://github.com/shixin-guo/picot
2•gzpoffline•48m ago•0 comments

What do you think it work best Reddit vs. X

1•thepopson•54m ago•4 comments

Sam Altman Movie 'Artificial' Dropped by Amazon After OpenAI Partnership

https://variety.com/2026/film/global/luca-guadagnino-sam-altman-movie-artificial-dropped-amazon-1...
1•mgh2•54m ago•0 comments