Adding constraint component at runtime

Ist there a way to add a constraint component in code after a GameObject was instantiated? Or is there a way to modifier an already attrached constraint component without using the inspector mode?

yes, all the variables in the inspector you can refrence them via script using the constrint.variant you want = your thing you want there, see Unity - Scripting API: Rigidbody.constraints